toUpgradeStep method

UpgradeStep toUpgradeStep()

Implementation

UpgradeStep toUpgradeStep() {
  switch (this) {
    case 'PRE_UPGRADE_CHECK':
      return UpgradeStep.preUpgradeCheck;
    case 'SNAPSHOT':
      return UpgradeStep.snapshot;
    case 'UPGRADE':
      return UpgradeStep.upgrade;
  }
  throw Exception('$this is not known in enum UpgradeStep');
}