fromString static method

ZoneType fromString(
  1. String type
)

Implementation

static ZoneType fromString(String type) {
  for (final zoneType in ZoneType.values) {
    if (zoneType.value == type) {
      return zoneType;
    }
  }
  return ZoneType.unknown;
}