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