Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (fileIds != null) { json['file_ids'] = fileIds; } return json; }