defaults constant Null safety

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

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,
  createFactory: true,
  createToJson: true,
  disallowUnrecognizedKeys: false,
  explicitToJson: false,
  fieldRename: FieldRename.none,
  ignoreUnannotated: false,
  includeIfNull: true,
  genericArgumentFactories: false,
);