OpJsonCodec class
Convert between an Op and a json object.
Constructors
- OpJsonCodec.new()
-
Prefer using this constructor as constant. This codec is stateless
so you can use a singleton.
const
Properties
-
decoder
→ Converter<
Map< String, dynamic> , Op> -
Returns the decoder of
this
, converting fromT
toS
.no setteroverride -
encoder
→ Converter<
Op, Map< String, dynamic> > -
Returns the encoder from
S
toT
.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Map< String, dynamic> , Op> -
Inverts
this
.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Map< String, dynamic> encoded) → Op -
Decodes
encoded
data.inherited -
encode(
Op input) → Map< String, dynamic> -
Encodes
input
.inherited -
fuse<
R> (Codec< Map< other) → Codec<String, dynamic> , R>Op, R> -
Fuses
this
withother
.inherited -
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