toCertificateStatus method
Implementation
CertificateStatus toCertificateStatus() {
switch (this) {
case 'PENDING_VALIDATION':
return CertificateStatus.pendingValidation;
case 'ISSUED':
return CertificateStatus.issued;
case 'INACTIVE':
return CertificateStatus.inactive;
case 'EXPIRED':
return CertificateStatus.expired;
case 'VALIDATION_TIMED_OUT':
return CertificateStatus.validationTimedOut;
case 'REVOKED':
return CertificateStatus.revoked;
case 'FAILED':
return CertificateStatus.failed;
}
throw Exception('$this is not known in enum CertificateStatus');
}