toJson method
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,
'thumbnail': thumbnail,
'emoji': emoji,
'set_name': setName,
'premium_animation': premiumAnimation,
'mask_position': maskPosition,
'custom_emoji_id': customEmojiId,
'need_repainting': needRepainting,
'file_size': fileSize,
}..removeWhere((_, v) => v == null);
}