FieldRename enum

Values for the automatic field renaming behavior for RestSerializable.

Heavily borrowed/inspired by JsonSerializable

Constants

kebab → const FieldRename

Encodes field name from kebabCase to kebab-case.

const FieldRename(2)
none → const FieldRename

Leave fields unchanged

const FieldRename(0)
pascal → const FieldRename

Capitalizes first letter of field name

const FieldRename(3)
snake → const FieldRename

Encodes field name from snakeCase to snake_case.

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

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

const List<FieldRename>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited