toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    "protectionSpace": protectionSpace?.toMap(),
    "credentials": credentials != null
        ? credentials!.map((credential) => credential.toMap()).toList()
        : null
  };
}