toTlsPolicy method

TlsPolicy toTlsPolicy()

Implementation

TlsPolicy toTlsPolicy() {
  switch (this) {
    case 'REQUIRE':
      return TlsPolicy.require;
    case 'OPTIONAL':
      return TlsPolicy.optional;
  }
  throw Exception('$this is not known in enum TlsPolicy');
}