toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'url': url,
'author': author,
'author_photo': authorPhoto?.toJson(),
'date': date,
'blocks': [for (final e in blocks) e.toJson()],
'caption': caption?.toJson(),
};