Json constructor

const Json({
  1. String name = "",
  2. Type? converter,
  3. bool ignore = false,
  4. bool includeNull = true,
  5. bool required = true,
  6. Object? defaultValue,
})

Create a Json name name override ignore if true, this field will not be serialized includeNull if true, nulls will be serialized. required if true, the JSON is expected to have a value defaultValue default in case of a not supplied json value

Implementation

const Json({this.name = "", this.converter,  this.ignore = false, this.includeNull = true, this.required = true, this.defaultValue});