Method

FwupdCodecfrom_json

Declaration [src]

gboolean
fwupd_codec_from_json (
  FwupdCodec* self,
  JsonNode* json_node,
  GError** error
)

Description [src]

Converts an object that implements FwupdCodec from a JSON object.

Available since:2.0.0

Parameters

json_node JsonNode
 

A JSON node.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success.