fromStringValue static method

MPVenueStatus fromStringValue(
  1. String value
)

Implementation

static MPVenueStatus fromStringValue(String value) {
  switch (value) {
    case "LOADING":
      return loading;
    case "UNAVAILABLE":
      return unavailable;
    case "LOADED":
      return loaded;
    case "FAILED":
      return failed;
    case "NO_VENUE":
      return noVenue;
    default:
      throw ArgumentError(
          "A MPVenueStatus scheme does not exist for the value $value");
  }
}