JsonKey constructor Null safety

const JsonKey(
  1. {@Deprecated('Has no effect') bool? nullable,
  2. Object? defaultValue,
  3. bool? disallowNullValue,
  4. Function? fromJson,
  5. bool? ignore,
  6. bool? includeIfNull,
  7. String? name,
  8. bool? required,
  9. Function? toJson,
  10. Object? 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,
  this.ignore,
  this.includeIfNull,
  this.name,
  this.required,
  this.toJson,
  this.unknownEnumValue,
});