toCertificateStatus method

CertificateStatus toCertificateStatus()

Implementation

CertificateStatus toCertificateStatus() {
  switch (this) {
    case 'ACTIVE':
      return CertificateStatus.active;
    case 'INACTIVE':
      return CertificateStatus.inactive;
    case 'REVOKED':
      return CertificateStatus.revoked;
    case 'PENDING_TRANSFER':
      return CertificateStatus.pendingTransfer;
    case 'REGISTER_INACTIVE':
      return CertificateStatus.registerInactive;
    case 'PENDING_ACTIVATION':
      return CertificateStatus.pendingActivation;
  }
  throw Exception('$this is not known in enum CertificateStatus');
}