JsonKey constructor

const JsonKey({Object defaultValue, bool disallowNullValue, bool encodeEmptyCollection, Function fromJson bool ignore, bool includeIfNull, String name, bool nullable, bool required, Function toJson })

Creates a new JsonKey instance.

Only required when the default behavior is not desired.

Implementation

const JsonKey({
  this.defaultValue,
  this.disallowNullValue,
  this.encodeEmptyCollection,
  this.fromJson,
  this.ignore,
  this.includeIfNull,
  this.name,
  this.nullable,
  this.required,
  this.toJson,
});