JsonKey constructor

const JsonKey(
  1. {Object defaultValue,
  2. bool disallowNullValue,
  3. Function fromJson,
  4. bool ignore,
  5. bool includeIfNull,
  6. String name,
  7. bool nullable,
  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({
  this.defaultValue,
  this.disallowNullValue,
  this.fromJson,
  this.ignore,
  this.includeIfNull,
  this.name,
  this.nullable,
  this.required,
  this.toJson,
  this.unknownEnumValue,
});