EnumValue class

Enum value.

Annotations
  • @JsonSerializable(createFactory: true, createToJson: true, explicitToJson: true)

Constructors

EnumValue({required String name, String? dbName})
Create a new enum value.
const
EnumValue.fromJson(Map<String, dynamic> json)
Enum value from JSON factory constructor.
factory

Properties

dbName String?
Enum value database name.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Enum value name.
final
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
toJson() Map<String, dynamic>
Enum value as JSON map.
toString() String
Enum value as JSON string.
override

Operators

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