getModelOrEnumName method

String getModelOrEnumName()

Implementation

String getModelOrEnumName() {
  if (isSimpleType) {
    throw Exception('Property $name is not a model');
  }
  if (isList) {
    return type.substring(5, type.length - 1);
  }
  return type;
}