fieldRename property

FieldRename fieldRename
final

Defines the automatic naming strategy when converting class field names into JSON map keys.

With a value FieldRename.none (the default), the name of the field is used without modification.

See FieldRename for details on the other options.

Note: the value for JsonKey.name takes precedence over this option for fields annotated with JsonKey.

Implementation

final FieldRename fieldRename