KnownJobStatusState enum

Overview

The object representing knownValues defined in Lexicon as an Enum.

Although the knownValues defined in Lexicon are not technically Enums, it is very useful to be able to treat these fields as type safe Enums.

Usage

Get JSON compatible value

// JSON compatible value.
final value = KnownJobStatusState.something.value;

Convert to UJobStatusState

final union = KnownJobStatusState.something.toUnion();
Inheritance
Available extensions

Values

jOB_STATE_COMPLETED → const KnownJobStatusState
const KnownJobStatusState('JOB_STATE_COMPLETED')
jOB_STATE_FAILED → const KnownJobStatusState
const KnownJobStatusState('JOB_STATE_FAILED')

Properties

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

Available on KnownJobStatusState, provided by the $KnownJobStatusStateExtension extension

Returns true if this value is jOB_STATE_COMPLETED, otherwise false.
no setter
isJOB_STATE_FAILED bool

Available on KnownJobStatusState, provided by the $KnownJobStatusStateExtension extension

Returns true if this value is jOB_STATE_FAILED, otherwise false.
no setter
isNotJOB_STATE_COMPLETED bool

Available on KnownJobStatusState, provided by the $KnownJobStatusStateExtension extension

Returns true if this value is not jOB_STATE_COMPLETED, otherwise false.
no setter
isNotJOB_STATE_FAILED bool

Available on KnownJobStatusState, provided by the $KnownJobStatusStateExtension extension

Returns true if this value is not jOB_STATE_FAILED, otherwise false.
no setter
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
value String
JSON value based on lexicon.
final

Methods

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

Available on KnownJobStatusState, provided by the $KnownJobStatusStateExtension extension

Returns this value as UJobStatusState.

Operators

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

Static Methods

valueOf(String? value) KnownJobStatusState?
Returns KnownJobStatusState associated with value, otherwise null.

Constants

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