toCertificateAuthorityStatus method
Implementation
CertificateAuthorityStatus toCertificateAuthorityStatus() {
switch (this) {
case 'CREATING':
return CertificateAuthorityStatus.creating;
case 'PENDING_CERTIFICATE':
return CertificateAuthorityStatus.pendingCertificate;
case 'ACTIVE':
return CertificateAuthorityStatus.active;
case 'DELETED':
return CertificateAuthorityStatus.deleted;
case 'DISABLED':
return CertificateAuthorityStatus.disabled;
case 'EXPIRED':
return CertificateAuthorityStatus.expired;
case 'FAILED':
return CertificateAuthorityStatus.failed;
}
throw Exception('$this is not known in enum CertificateAuthorityStatus');
}