@override Object toJson() { return { if (video != null) 'video': encodeBytes(video), if (uri != null) 'uri': uri, }; }