includeIfNull property

bool? includeIfNull
finalinherited

Whether the generator should include fields with null values in the serialized output.

If true (the default), all fields are written to JSON, even if they are null.

If a field is annotated with JsonKey with a non-null value for includeIfNull, that value takes precedent.

Implementation

final bool? includeIfNull;