fromString static method

StatusResponse fromString(
  1. String value
)

Implementation

static StatusResponse fromString(String value) {
  return StatusResponse.values
      .firstWhere((type) => type.toString().split(".").last == value);
}