match static method

AppMode match(
  1. String appModeStr
)

Implementation

static AppMode match(String appModeStr) {
  switch (appModeStr) {
    case "experimental":
      return AppMode.experimental;
    case "production":
      return AppMode.production;
    case "testing":
      return AppMode.testing;
    default:
      return AppMode.experimental;
  }
}