DatamodelEnum class

Datamodel enum.

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

Constructors

DatamodelEnum({required String name, required List<EnumValue> values, String? dbName, String? documentation})
Create a new datamodel enum.
const
DatamodelEnum.fromJson(Map<String, dynamic> json)
Datamodel enum from JSON factory constructor.
factory

Properties

dbName String?
Database name.
final
documentation String?
Documentation.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Enum name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<EnumValue>
enum values.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Datamodel enum as JSON map.
toString() String
Datamodel enum as JSON string.
override

Operators

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