toWebRTCMap method
Converts this ICE server to a map format compatible with flutter_webrtc.
This uses 'url' instead of 'urls' for compatibility with some WebRTC implementations that expect a single URL string.
Implementation
Map<String, dynamic> toWebRTCMap() {
final map = <String, dynamic>{
'urls': urls,
};
if (username != null) {
map['username'] = username;
}
if (credential != null) {
map['credential'] = credential;
}
return map;
}