toLoadBalancerTlsCertificateRevocationReason method

LoadBalancerTlsCertificateRevocationReason toLoadBalancerTlsCertificateRevocationReason()

Implementation

LoadBalancerTlsCertificateRevocationReason
    toLoadBalancerTlsCertificateRevocationReason() {
  switch (this) {
    case 'UNSPECIFIED':
      return LoadBalancerTlsCertificateRevocationReason.unspecified;
    case 'KEY_COMPROMISE':
      return LoadBalancerTlsCertificateRevocationReason.keyCompromise;
    case 'CA_COMPROMISE':
      return LoadBalancerTlsCertificateRevocationReason.caCompromise;
    case 'AFFILIATION_CHANGED':
      return LoadBalancerTlsCertificateRevocationReason.affiliationChanged;
    case 'SUPERCEDED':
      return LoadBalancerTlsCertificateRevocationReason.superceded;
    case 'CESSATION_OF_OPERATION':
      return LoadBalancerTlsCertificateRevocationReason.cessationOfOperation;
    case 'CERTIFICATE_HOLD':
      return LoadBalancerTlsCertificateRevocationReason.certificateHold;
    case 'REMOVE_FROM_CRL':
      return LoadBalancerTlsCertificateRevocationReason.removeFromCrl;
    case 'PRIVILEGE_WITHDRAWN':
      return LoadBalancerTlsCertificateRevocationReason.privilegeWithdrawn;
    case 'A_A_COMPROMISE':
      return LoadBalancerTlsCertificateRevocationReason.aACompromise;
  }
  throw Exception(
      '$this is not known in enum LoadBalancerTlsCertificateRevocationReason');
}