Field constructor
Field({
- required String name,
- required ItemType type,
- required bool isRequired,
- required bool ignore,
- required bool includeFromJson,
- required bool includeToJson,
- required bool includeIfNull,
- required bool nonFinal,
- required bool ignoreEquality,
- String? description,
- String? unknownEnumValue,
- String? fromJson,
- String? toJson,
- String? defaultValue,
- bool disallowNull = false,
- String? jsonKey,
Implementation
Field({
required String name,
required this.type,
required this.isRequired,
required this.ignore,
required this.includeFromJson,
required this.includeToJson,
required this.includeIfNull,
required this.nonFinal,
required this.ignoreEquality,
this.description,
this.unknownEnumValue,
this.fromJson,
this.toJson,
this.defaultValue,
this.disallowNull = false,
String? jsonKey,
}) : serializedName = jsonKey ?? name,
name =
CaseUtil(KeywordHelper.instance.getCorrectKeyword(name)).camelCase;