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