ModelsGenerator constructor

ModelsGenerator({
  1. required String importPath,
  2. required String exportPath,
  3. Encoding? exportEncoding,
  4. Encoding? encoding,
  5. DartFormatter? formatter,
  6. bool? convertClassNames,
  7. bool? convertFieldNames,
  8. bool? convertInstanceNames,
  9. bool? assignFieldTypes,
  10. bool? includeNullFields,
})

The architecture of the data class generator.

Implementation

ModelsGenerator({
  required super.importPath,
  required super.exportPath,
  super.exportEncoding,
  super.encoding,
  super.formatter,
  this.convertClassNames,
  this.convertFieldNames,
  this.convertInstanceNames,
  final bool? assignFieldTypes,
  final bool? includeNullFields,
})  : assignFieldTypes = assignFieldTypes ?? true,
      includeNullFields = includeNullFields ?? true;