toStage method

Stage toStage()

Implementation

Stage toStage() {
  switch (this) {
    case 'PRODUCTION':
      return Stage.production;
    case 'BETA':
      return Stage.beta;
    case 'DEVELOPMENT':
      return Stage.development;
    case 'EXPERIMENTAL':
      return Stage.experimental;
    case 'PULL_REQUEST':
      return Stage.pullRequest;
  }
  throw Exception('$this is not known in enum Stage');
}