fromGUID static method

PowerSetting fromGUID(
  1. String guid
)

Converts a GUID string to a PowerSetting.

Implementation

static PowerSetting fromGUID(String guid) => PowerSetting.values.firstWhere(
    (element) => element.guid.toUpperCase() == guid.toUpperCase());