toUpgradeStatus method

UpgradeStatus toUpgradeStatus()

Implementation

UpgradeStatus toUpgradeStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return UpgradeStatus.inProgress;
    case 'SUCCEEDED':
      return UpgradeStatus.succeeded;
    case 'SUCCEEDED_WITH_ISSUES':
      return UpgradeStatus.succeededWithIssues;
    case 'FAILED':
      return UpgradeStatus.failed;
  }
  throw Exception('$this is not known in enum UpgradeStatus');
}