fromValue static method

UserType fromValue(
  1. String value
)

Implementation

static UserType fromValue(String value) => values
    .firstWhere((e) => e.value == value, orElse: () => UserType._(value));