toOpsItemStatus method
Implementation
OpsItemStatus toOpsItemStatus() {
switch (this) {
case 'Open':
return OpsItemStatus.open;
case 'InProgress':
return OpsItemStatus.inProgress;
case 'Resolved':
return OpsItemStatus.resolved;
case 'Pending':
return OpsItemStatus.pending;
case 'TimedOut':
return OpsItemStatus.timedOut;
case 'Cancelling':
return OpsItemStatus.cancelling;
case 'Cancelled':
return OpsItemStatus.cancelled;
case 'Failed':
return OpsItemStatus.failed;
case 'CompletedWithSuccess':
return OpsItemStatus.completedWithSuccess;
case 'CompletedWithFailure':
return OpsItemStatus.completedWithFailure;
case 'Scheduled':
return OpsItemStatus.scheduled;
case 'RunbookInProgress':
return OpsItemStatus.runbookInProgress;
case 'PendingChangeCalendarOverride':
return OpsItemStatus.pendingChangeCalendarOverride;
case 'ChangeCalendarOverrideApproved':
return OpsItemStatus.changeCalendarOverrideApproved;
case 'ChangeCalendarOverrideRejected':
return OpsItemStatus.changeCalendarOverrideRejected;
case 'PendingApproval':
return OpsItemStatus.pendingApproval;
case 'Approved':
return OpsItemStatus.approved;
case 'Rejected':
return OpsItemStatus.rejected;
}
throw Exception('$this is not known in enum OpsItemStatus');
}