toMap method

Map<String, dynamic> toMap()

Converts instance to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "authenticationMethod": authenticationMethod?.toNativeValue(),
    "distinguishedNames": distinguishedNames?.map((e) => e.toMap()).toList(),
    "host": host,
    "port": port,
    "protocol": protocol,
    "proxyType": proxyType?.toNativeValue(),
    "realm": realm,
    "receivesCredentialSecurely": receivesCredentialSecurely,
    "sslCertificate": sslCertificate?.toMap(),
    "sslError": sslError?.toMap(),
  };
}