toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'id': id.toString(),
'title': title,
'name': name,
'thumbnail': thumbnail?.toJson(),
'thumbnail_outline': thumbnailOutline?.toJson(),
'is_owned': isOwned,
'is_installed': isInstalled,
'is_archived': isArchived,
'is_official': isOfficial,
'sticker_type': stickerType?.toJson(),
'needs_repainting': needsRepainting,
'is_allowed_as_chat_emoji_status': isAllowedAsChatEmojiStatus,
'is_viewed': isViewed,
'size': size,
'covers': covers.map((item) => item.toJson()).toList(),
'@type': constructor,
};