Map<String, dynamic> toJson() { final fileId = this.fileId; final streamId = this.streamId; return { if (fileId != null) 'fileId': fileId, if (streamId != null) 'streamId': streamId, }; }