map method

TTarget map(
  1. TSource source,
  2. AutoMapper mapper,
  3. Map params
)

Maps the source.

Provides the calling mapper so child members can be mapped as well.

If needed, additional parameters can be passed to params.

Implementation

TTarget map(TSource source, AutoMapper mapper, Map params) {
  try {
    return expression(source, mapper, params);
  } catch (exception) {
    throw MapException(exception);
  }
}