Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'pingProxy', if (extra != null) '@extra': extra, 'proxy_id': proxy_id }; }