readAsMap method
Converts this object to a DogNativeMapReader if it is a Map<String, dynamic>, otherwise throws a DogSerializerException.
Implementation
DogNativeMapReader readAsMap(dynamic input, DogEngine engine) {
if (input is Map<String, dynamic>) {
return DogNativeMapReader(engine, input, this);
}
throw DogSerializerException(message: "Expected a map but got $runtimeType", converter: this);
}