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