kindName method

  1. @override
String kindName(
  1. Type type
)
override

Returns the string representation of the kind of model class type.

If the model class type is not found it will throw an ArgumentError.

Implementation

@override
String kindName(Type type) {
  var kind = _modelDesc2Type[type]?.kind;
  if (kind == null) {
    throw ArgumentError('The class $type was not associated with a kind.');
  }
  return kind;
}