toCertificateMode method

CertificateMode toCertificateMode()

Implementation

CertificateMode toCertificateMode() {
  switch (this) {
    case 'DEFAULT':
      return CertificateMode.$default;
    case 'SNI_ONLY':
      return CertificateMode.sniOnly;
  }
  throw Exception('$this is not known in enum CertificateMode');
}