SchemaEnum class

Schema enum.

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

Constructors

SchemaEnum({required String name, required List<String> values})
Create a new schema enum.
const
SchemaEnum.fromJson(Map<String, dynamic> json)
Schema enum from JSON factory constructor.
factory

Properties

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<String>
Enum values.
final

Methods

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

Operators

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