toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@type": CONSTRUCTOR,
"id": id,
"added_date": addedDate,
"minithumbnail": minithumbnail?.toJson(),
"sizes": sizes.map((i) => i.toJson()).toList(),
"animation": animation?.toJson(),
"small_animation": smallAnimation?.toJson(),
"sticker": sticker?.toJson(),
};
}