Field constructor

Field({
  1. required String name,
  2. required ItemType type,
  3. required bool isRequired,
  4. required bool ignore,
  5. required bool includeIfNull,
  6. required bool nonFinal,
  7. String? unknownEnumValue,
  8. String? jsonKey,
})

Implementation

Field({
  required String name,
  required this.type,
  required this.isRequired,
  required this.ignore,
  required this.includeIfNull,
  required this.nonFinal,
  this.unknownEnumValue,
  String? jsonKey,
})  : serializedName = jsonKey ?? name,
      name =
          CaseUtil(KeywordHelper.instance.getCorrectKeyword(name)).camelCase;