toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'id': id.toString(),
'ip_address': ipAddress,
'ipv6_address': ipv6Address,
'port': port,
'type': type.toJson(),
};