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