toAppLaunchStatus method
Implementation
AppLaunchStatus toAppLaunchStatus() {
switch (this) {
case 'READY_FOR_CONFIGURATION':
return AppLaunchStatus.readyForConfiguration;
case 'CONFIGURATION_IN_PROGRESS':
return AppLaunchStatus.configurationInProgress;
case 'CONFIGURATION_INVALID':
return AppLaunchStatus.configurationInvalid;
case 'READY_FOR_LAUNCH':
return AppLaunchStatus.readyForLaunch;
case 'VALIDATION_IN_PROGRESS':
return AppLaunchStatus.validationInProgress;
case 'LAUNCH_PENDING':
return AppLaunchStatus.launchPending;
case 'LAUNCH_IN_PROGRESS':
return AppLaunchStatus.launchInProgress;
case 'LAUNCHED':
return AppLaunchStatus.launched;
case 'PARTIALLY_LAUNCHED':
return AppLaunchStatus.partiallyLaunched;
case 'DELTA_LAUNCH_IN_PROGRESS':
return AppLaunchStatus.deltaLaunchInProgress;
case 'DELTA_LAUNCH_FAILED':
return AppLaunchStatus.deltaLaunchFailed;
case 'LAUNCH_FAILED':
return AppLaunchStatus.launchFailed;
case 'TERMINATE_IN_PROGRESS':
return AppLaunchStatus.terminateInProgress;
case 'TERMINATE_FAILED':
return AppLaunchStatus.terminateFailed;
case 'TERMINATED':
return AppLaunchStatus.terminated;
}
throw Exception('$this is not known in enum AppLaunchStatus');
}