LightSignaling class
Represents light signalling properties.
Constructors
-
LightSignaling({required LightSignalingStatus status, required List<
String> signalValues}) -
Creates a LightSignaling object.
const
- LightSignaling.empty()
- Creates an empty LightSignaling object.
-
LightSignaling.fromJson(Map<
String, dynamic> dataMap) -
Creates a LightSignaling object from the JSON response to a GET request.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signalValues
→ List<
String> -
The accepted signal values.
final
- status → LightSignalingStatus
-
The current signalling status.
final
Methods
-
copyWith(
{LightSignalingStatus? status, List< String> ? signalValues}) → LightSignaling - Returns a copy of this object with its field values replaced by the ones provided to this method.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this object into JSON format.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override