createModelName static method

dynamic createModelName(
  1. String name
)

This will generate a model name for the supplied attribute name the convention is

  1. convert the name using camelCase of required (and uppercase first char)
  2. append "Model" to the end

Implementation

static createModelName(String name) {
  final camelCase = ConversionUtils.prepName(name, firstUpper: true);
  return "${camelCase}Model";
}