CaseStyle enum

Enumeration of supported string casing styles.

Used to specify how string identifiers (like XML element names, JSON keys, etc.) should be transformed during serialization.

Inheritance
Available extensions

Values

none → const CaseStyle

No transformation - keep original casing Example: "userName" → "userName", "user_name" → "user_name"

camelCase → const CaseStyle

camelCase - first word lowercase, subsequent words capitalized Example: "user_name" → "userName", "User Name" → "userName"

pascalCase → const CaseStyle

PascalCase - first letter of each word capitalized Example: "user_name" → "UserName", "userName" → "UserName"

snakeCase → const CaseStyle

snake_case - all lowercase with underscores Example: "userName" → "user_name", "User Name" → "user_name"

kebabCase → const CaseStyle

kebab-case (param-case) - all lowercase with hyphens Example: "userName" → "user-name", "user_name" → "user-name"

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<CaseStyle>
A constant List of the values in this enum, in order of their declaration.