toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AuditCheckRunStatus.inProgress:
      return 'IN_PROGRESS';
    case AuditCheckRunStatus.waitingForDataCollection:
      return 'WAITING_FOR_DATA_COLLECTION';
    case AuditCheckRunStatus.canceled:
      return 'CANCELED';
    case AuditCheckRunStatus.completedCompliant:
      return 'COMPLETED_COMPLIANT';
    case AuditCheckRunStatus.completedNonCompliant:
      return 'COMPLETED_NON_COMPLIANT';
    case AuditCheckRunStatus.failed:
      return 'FAILED';
  }
}