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 bykey
, expecting it to be exactly of typeT
. -
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 bykey
. The type parameterT
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.