DogNativeMapReader class

Utility class for converters to access dogs deserialization capabilities when decoding custom map structures.

Constructors

DogNativeMapReader(DogEngine _engine, Map<String, dynamic> _backing, DogConverter _converter)
Utility class for converters to access dogs deserialization capabilities when decoding custom map structures.
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

expects<T>(String key, [String? message]) → T
Reads a value of type T from the backing map by key, expecting it to be exactly of type T.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read<T>(String key, [T? defaultValue]) → T
Reads a value of type T from the backing map by key. The type parameter T must be specified explicitly and cannot be nullable.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) → dynamic
Direct access to the underlying map to retrieve raw values.