get method
Read a property value given an instance
instance
the instance
context
the context object
Returns the retrieved value
Implementation
@override
dynamic get(instance, MappingContext context) {
dynamic value = (instance as Map)[name];
if ( value == null) {
if ( defaultValue != JSONProperty)
return defaultValue;
else
throw MapperException("expected a value for $name");
}
return value;
}