Type Method
decode(fromJSON:with:)
Decodes a render node value from the given JSON data.
static func decode(fromJSON data: Data, with decoder: JSONDecoder = RenderJSONDecoder.makeDecoder()) throws -> RenderNode
Parameters
dataThe JSON data to decode.
decoderThe object that decodes the JSON data.
Return Value
The decoded render node value.
Discussion
Throws
A RenderNode.CodingError in case the decoder is unable to find a key or value in the data, the type of a decoded value is wrong, or the data is corrupted.