toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

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(),
  };
}