toJson method
Converts a Sticker object to JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'file_id': fileId,
'file_unique_id': fileUniqueId,
'type': type.toJson(),
'width': width,
'height': height,
'is_animated': isAnimated,
'is_video': isVideo,
'thumbnail': thumbnail?.toJson(),
'emoji': emoji,
'set_name': setName,
'premium_animation': premiumAnimation?.toJson(),
'mask_position': maskPosition?.toJson(),
'custom_emoji_id': customEmojiId,
'file_size': fileSize,
}..removeWhere(_nullFilter);
}