Map<String, dynamic> toJson() { return { 'items': items.map((e) => e.toJson()).toList(), 'dragOperationsMask': dragOperationsMask, if (files != null) 'files': [...?files], }; }