KeyCodec<A> class
abstract
Bidirectional codec for JsonObject keys, combining KeyDecoder and KeyEncoder into a single type.
- Inheritance
-
- Object
- KeyDecoder<
A> - KeyCodec
- Mixed-in types
-
- KeyEncoder<
A>
- KeyEncoder<
Constructors
- KeyCodec()
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 key) → Option< A> -
Decodes
key, returningSomeon success orNoneon failure.inherited -
encode(
A a) → String -
Encodes
aas a JSON object key string.inherited -
flatMap<
B> (Function1< A, KeyDecoder< f) → KeyDecoder<B> >B> -
Returns a decoder that decodes a key with this decoder and then passes
the result to
fto select the next decoder.inherited -
map<
B> (Function1< A, B> f) → KeyDecoder<B> -
Returns a decoder that transforms a successfully decoded key with
f.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