checkTypesKnown method

void checkTypesKnown(
  1. Set<String> names,
  2. String type
)

Implementation

void checkTypesKnown(final Set<String> names, String type) {
  if (!TypeChecker.isKnownDartType(type) && !names.contains(type)) {
    throw Exception(
        'Could not generate all models. `$type` is not added to the config file, but is extended. These types are known: ${names.join(',')}');
  }
}