toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@type": CONSTRUCTOR,
"id": id,
"ip_address": ipAddress,
"ipv6_address": ipv6Address,
"port": port,
"type": type.toJson(),
};
}