PayloadCodec class

Encodes/decodes JSON payload.

Constructors

PayloadCodec()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(String json) FutureOr<Map>
Decodes a JSON string into a Map
encode(Object document) FutureOr<String>
Encodes a JSON:API document into a JSON string.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited