toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'name': name,
    'title': title,
    'sticker_type': stickerType,
    'is_animated': isAnimated,
    'is_video': isVideo,
    'stickers': stickers,
    'photo_size': thumb,
  }..removeWhere((_, v) => v == null);
}