toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'document': document.toJson(),
'thumbnail': thumbnail?.toJson(),
'disable_content_type_detection': disableContentTypeDetection,
'caption': caption?.toJson(),
};