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