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