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