toServerCertificateStatus method

ServerCertificateStatus toServerCertificateStatus()

Implementation

ServerCertificateStatus toServerCertificateStatus() {
  switch (this) {
    case 'INVALID':
      return ServerCertificateStatus.invalid;
    case 'VALID':
      return ServerCertificateStatus.valid;
  }
  throw Exception('$this is not known in enum ServerCertificateStatus');
}