decodeData abstract method
void
decodeData(
- dynamic source
Decodes structured data from source
as content objects.
The source
data is expected to be a valid structured data representation
of content like JSON Object or JSON Array.
The target of objects decoded from text is not defined by this interface. A decoder could produce content objects sent to a content interface or build structured data objects with compatible model. Also some decoders might allow multiple calls to this method to build a larger target object structure.
Some decoders may fail using this method even if decodeText or decodeBytes are usable.
Throws FormatException
if decoding fails.
Implementation
void decodeData(dynamic source);