withDefaults method

  1. @override
JsonSerializable withDefaults()

Returns a new JsonSerializable instance with fields equal to the corresponding values in this, if not null.

Otherwise, the returned value has the default value as defined in defaults.

Implementation

@override
JsonSerializable withDefaults() => this;