toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'stickerSet',
    if (extra != null) '@extra': extra,
    'id': id,
    'title': title,
    'name': name,
    'thumbnail': thumbnail,
    'thumbnail_outline': thumbnail_outline,
    'is_installed': is_installed,
    'is_archived': is_archived,
    'is_official': is_official,
    'sticker_format': sticker_format,
    'sticker_type': sticker_type,
    'is_viewed': is_viewed,
    'stickers': stickers,
    'emojis': emojis
  };
}