toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'url': url,
'author': author,
'author_photo': authorPhoto?.toJson(),
'date': date,
'blocks': blocks.map((item) => item.toJson()).toList(),
'caption': caption?.toJson(),
'@type': constructor,
};