set method

  1. @override
void set(
  1. dynamic instance,
  2. dynamic value,
  3. MappingContext context
)
override

Write a property value given an instance

instance the instance value the value to write context the context object

Implementation

@override
void set(dynamic instance,dynamic  value, MappingContext context) {
  var m = mapping ?? (mapping = mapper.getMappingX(sourceType, targetProperty.getType())); // TODO
  targetProperty.set(instance, mapper.map(value, context: context, mapping: m), context); // recursive call!
}