fromString static method

XRayPlatform fromString(
  1. String? value
)

Implementation

static XRayPlatform fromString(String? value) {
  return XRayPlatform.values.firstWhere(
    (p) => p.name == value,
    orElse: () => XRayPlatform.unknown,
  );
}