defaults constant

  1. @Deprecated('Was only ever included to support builder infrastructure.')
JsonSerializable const defaults

An instance of JsonSerializable with all fields set to their default values.

Implementation

@Deprecated('Was only ever included to support builder infrastructure.')
static const defaults = JsonSerializable(
  anyMap: false,
  checked: false,
  constructor: '',
  createFactory: true,
  createToJson: true,
  disallowUnrecognizedKeys: false,
  explicitToJson: false,
  fieldRename: FieldRename.none,
  ignoreUnannotated: false,
  includeIfNull: true,
  genericArgumentFactories: false,
);