fromString static method
Get a TrainStatus from a given string value
.
Implementation
static TrainStatus fromString(String value) {
return values.firstWhere(
(unitType) => unitType.value == value,
orElse: () => unknown,
);
}
Get a TrainStatus from a given string value
.
static TrainStatus fromString(String value) {
return values.firstWhere(
(unitType) => unitType.value == value,
orElse: () => unknown,
);
}