toModelName function

String toModelName(
  1. String? modelName,
  2. String definedName
)

Set model name by defined if the model name set null

Implementation

String toModelName(String? modelName, String definedName) => modelName == null || modelName.isEmpty ? toCamelCase(toSingularName(definedName)) : toCamelCase(modelName);