Converts instance to a map.
Map<String, dynamic> toMap() { return { "type": type, "iconURL": iconURL?.toString(), "id": id, "name": name, "protocol": protocol, "provider": provider, }; }