fromString static method

DeviceArchetype fromString(
  1. String value
)

Get a DeviceArchetype from a given string value.

Implementation

static DeviceArchetype fromString(String value) {
  return values.firstWhere(
    (archetype) => archetype.value == value,
    orElse: () => unknownArchetype,
  );
}