JsonSerializable constructor Null safety

const JsonSerializable(
  1. {@Deprecated('Has no effect') bool? nullable,
  2. bool? anyMap,
  3. bool? checked,
  4. bool? createFactory,
  5. bool? createToJson,
  6. bool? disallowUnrecognizedKeys,
  7. bool? explicitToJson,
  8. FieldRename? fieldRename,
  9. bool? ignoreUnannotated,
  10. bool? includeIfNull,
  11. bool? genericArgumentFactories}
)

Creates a new JsonSerializable instance.

Implementation

const JsonSerializable({
  @Deprecated('Has no effect') bool? nullable,
  this.anyMap,
  this.checked,
  this.createFactory,
  this.createToJson,
  this.disallowUnrecognizedKeys,
  this.explicitToJson,
  this.fieldRename,
  this.ignoreUnannotated,
  this.includeIfNull,
  this.genericArgumentFactories,
});