map method

TTarget map(
  1. TSource source
)

Maps the source.

Implementation

TTarget map(TSource source) {
  try {
    return expression(source.toAutoJson());
  } catch (e) {
    throw MapException(e);
  }
}