DartModelsGenerator constructor

DartModelsGenerator({
  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,
  11. Iterable<String>? imports,
})

The data class generator for dart.

Implementation

DartModelsGenerator({
  required super.importPath,
  required super.exportPath,
  super.exportEncoding,
  super.encoding,
  super.formatter,
  super.convertClassNames,
  super.convertFieldNames,
  super.convertInstanceNames,
  super.assignFieldTypes,
  super.includeNullFields,
  final Iterable<String>? imports,
}) : imports = imports ??
          const <String>[
            'package:json_converters_lite/json_converters_lite.dart'
          ];