getMapping<S, T> method

Mapping<S, T> getMapping<S, T>()

Implementation

Mapping<S,T> getMapping<S,T>() {
  var key = MappingKey(source: S, target: T);
  var mapping = mappings[key];
  if (mapping == null) {
    throw MapperException('No mapping found for <$S, $T>');
  }

  return mapping as Mapping<S,T>;
}