toCertificateTransparencyLoggingPreference method

CertificateTransparencyLoggingPreference toCertificateTransparencyLoggingPreference()

Implementation

CertificateTransparencyLoggingPreference
    toCertificateTransparencyLoggingPreference() {
  switch (this) {
    case 'ENABLED':
      return CertificateTransparencyLoggingPreference.enabled;
    case 'DISABLED':
      return CertificateTransparencyLoggingPreference.disabled;
  }
  throw Exception(
      '$this is not known in enum CertificateTransparencyLoggingPreference');
}