defaults constant

JsonSerializable const defaults

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

Implementation

static const defaults = JsonSerializable(
  anyMap: false,
  checked: false,
  createFactory: true,
  createToJson: true,
  disallowUnrecognizedKeys: false,
  explicitToJson: false,
  fieldRename: FieldRename.none,
  ignoreUnannotated: false,
  includeIfNull: true,
  nullable: true,
)