factory SocketAddress.fromJson(Map<String, dynamic> json) { return SocketAddress( ipAddress: json['IpAddress'] as String?, port: json['Port'] as int?, ); }