toValue method
Implementation
String toValue() {
switch (this) {
case CertificateStatus.pendingValidation:
return 'PENDING_VALIDATION';
case CertificateStatus.issued:
return 'ISSUED';
case CertificateStatus.inactive:
return 'INACTIVE';
case CertificateStatus.expired:
return 'EXPIRED';
case CertificateStatus.validationTimedOut:
return 'VALIDATION_TIMED_OUT';
case CertificateStatus.revoked:
return 'REVOKED';
case CertificateStatus.failed:
return 'FAILED';
}
}