transformTarget method

  1. @override
void transformTarget(
  1. dynamic source,
  2. dynamic target,
  3. MappingContext context
)
override

Modify a target instance by applying all specified operations.

source the source object target the target object context the context object

Implementation

@override
void transformTarget(dynamic source, dynamic target, MappingContext context) {
  var mapping = findMapping(source as Map<String,dynamic>);

  if ( mapping == this)
     super.transformTarget(source, target, context);
  else {
    mapping.setupContext(context);
    mapping.transformTarget(source, target, context);
  }
}