toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'file_id': fileId,
    'file_unique_id': fileUniqueId,
    'type': type,
    'width': width,
    'height': height,
    'is_animated': isAnimated,
    'is_video': isVideo,
    'thumb': thumb,
    'emoji': emoji,
    'set_name': setName,
    'premium_animation': premiumAnimation,
    'mask_position': maskPosition,
    'custom_emoji_id': customEmojiId,
    'file_size': fileSize,
  }..removeWhere((_, v) => v == null);
}