Converts this object to TDLib JSON.
@override Map<String, dynamic> toJson() => { '@type': CONSTRUCTOR, 'photo': photo?.toJson(), 'caption': caption?.toJson(), 'url': url, 'has_spoiler': hasSpoiler, };