includeToJson property

bool? includeToJson
final

Determines whether a field should be included (or excluded) when encoding an object to JSON.

null (the default) means the field will be handled with the default semantics that take into account if it's private or if it can be cleanly round-tripped to-from JSON.

true forces the field to always be encoded, even if it's private.

false prevents the field from being encoded.

Implementation

final bool? includeToJson;