fromString static method

ClientStatus? fromString(
  1. String rawValue
)

Implementation

static ClientStatus? fromString(String rawValue) {
  try {
    return ClientStatus.values
        .firstWhere((element) => element.name == rawValue);
  } catch (err) {
    assert(err is StateError);
    return null;
  }
}