FieldRename enum

Values for the automatic field renaming behavior for JsonSerializable.


kebab → const FieldRename

Encodes a field named kebabCase with a JSON key kebab-case.

const FieldRename(1)
none → const FieldRename

Use the field name without changes.

const FieldRename(0)
pascal → const FieldRename

Encodes a field named pascalCase with a JSON key PascalCase.

const FieldRename(3)
snake → const FieldRename

Encodes a field named snakeCase with a JSON key snake_case.

const FieldRename(2)
values → const List<FieldRename>

A constant List of the values in this enum, in order of their declaration.

const List<FieldRename>


index → int

The integer index of this enum.

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.


operator ==(dynamic other) → bool
The equality operator.