FieldRename enum Null safety

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)
screamingSnake → const FieldRename

Encodes a field named screamingSnakeCase with a JSON key SCREAMING_SNAKE_CASE

const FieldRename(4)
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>


hashCode int
The hash code for this object. [...]
read-only, inherited
index int
A numeric identifier for the enumerated value. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


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


operator ==(Object other) bool
The equality operator. [...]