GGMapCodec class

A GGMapCodec encodes Map<String, dynamic> to bytes and decodes bytes to Map<String, dynamic>] objects.

Examples:

var encoded = ggmap.encode({ 'hello': 'world' });
var decoded = ggmap.decode(encoded);
Inheritance

Constructors

GGMapCodec()
const

Properties

decoder Converter<Uint8List, Map<String, dynamic>>
Returns the decoder of this, converting from T to S.
no setteroverride
encoder Converter<Map<String, dynamic>, Uint8List>
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<Uint8List, Map<String, dynamic>>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Uint8List encoded) Map<String, dynamic>
Decodes encoded data.
inherited
encode(Map<String, dynamic> input) Uint8List
Encodes input.
inherited
fuse<R>(Codec<Uint8List, R> other) Codec<Map<String, dynamic>, R>
Fuses this with other.
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