FieldRename enum Null safety
Values for the automatic field renaming behavior for JsonSerializable.
Constants
- kebab → const FieldRename
-
Encodes a field named
kebabCase
with a JSON keykebab-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 keyPascalCase
.const FieldRename(3)
- snake → const FieldRename
-
Encodes a field named
snakeCase
with a JSON keysnake_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>
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited