JsonKey constructor
const
JsonKey({
- @Deprecated('Has no effect') bool? nullable,
- Object? defaultValue,
- bool? disallowNullValue,
- Function? fromJson,
- @Deprecated('Use `includeFromJson` and `includeToJson` with a value of `false` ' 'instead.') bool? ignore,
- bool? includeFromJson,
- bool? includeIfNull,
- bool? includeToJson,
- String? name,
- Object? readValue()?,
- bool? required,
- Function? toJson,
- Enum? unknownEnumValue,
Creates a new JsonKey instance.
Only required when the default behavior is not desired.
Implementation
const JsonKey({
@Deprecated('Has no effect') bool? nullable,
this.defaultValue,
this.disallowNullValue,
this.fromJson,
@Deprecated(
'Use `includeFromJson` and `includeToJson` with a value of `false` '
'instead.',
)
this.ignore,
this.includeFromJson,
this.includeIfNull,
this.includeToJson,
this.name,
this.readValue,
this.required,
this.toJson,
this.unknownEnumValue,
});