toAuditCheckRunStatus method
Implementation
AuditCheckRunStatus toAuditCheckRunStatus() {
switch (this) {
case 'IN_PROGRESS':
return AuditCheckRunStatus.inProgress;
case 'WAITING_FOR_DATA_COLLECTION':
return AuditCheckRunStatus.waitingForDataCollection;
case 'CANCELED':
return AuditCheckRunStatus.canceled;
case 'COMPLETED_COMPLIANT':
return AuditCheckRunStatus.completedCompliant;
case 'COMPLETED_NON_COMPLIANT':
return AuditCheckRunStatus.completedNonCompliant;
case 'FAILED':
return AuditCheckRunStatus.failed;
}
throw Exception('$this is not known in enum AuditCheckRunStatus');
}