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,
    "sticker_format": stickerFormat.toJson(),
    "sticker_type": stickerType.toJson(),
    "is_viewed": isViewed,
    "size": size,
    "covers": covers.map((i) => i.toJson()).toList(),
  };
}