hasDefinition method

bool hasDefinition(
  1. Type source,
  2. Type target
)

Implementation

bool hasDefinition(Type source, Type target) {
  for ( var definition in mappingDefinitions)
    if ( definition.sourceClass == source && definition.targetClass == target)
      return true;

  return false;
}