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,
    "title": title,
    "name": name,
    "thumbnail": thumbnail?.toJson(),
    "thumbnail_outline": thumbnailOutline.map((i) => i.toJson()).toList(),
    "is_installed": isInstalled,
    "is_archived": isArchived,
    "is_official": isOfficial,
    "is_animated": isAnimated,
    "is_masks": isMasks,
    "is_viewed": isViewed,
    "stickers": stickers.map((i) => i.toJson()).toList(),
    "emojis": emojis.map((i) => i.toJson()).toList(),
  };
}