toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DetectMitigationActionsTaskStatus.inProgress:
      return 'IN_PROGRESS';
    case DetectMitigationActionsTaskStatus.successful:
      return 'SUCCESSFUL';
    case DetectMitigationActionsTaskStatus.failed:
      return 'FAILED';
    case DetectMitigationActionsTaskStatus.canceled:
      return 'CANCELED';
  }
}