diff --git a/packages/nextcloud/lib/src/webdav/webdav.dart b/packages/nextcloud/lib/src/webdav/webdav.dart index 6a7932a5..981c520b 100644 --- a/packages/nextcloud/lib/src/webdav/webdav.dart +++ b/packages/nextcloud/lib/src/webdav/webdav.dart @@ -84,7 +84,7 @@ class WebDavPropertyupdate with _$WebDavPropertyupdateXmlSerializableMixin { } @annotation.XmlSerializable(createMixin: true) -@annotation.XmlRootElement(name: 'propertyupdate', namespace: namespaceDav) +@annotation.XmlRootElement(name: 'set', namespace: namespaceDav) class WebDavSet with _$WebDavSetXmlSerializableMixin { WebDavSet({ required this.prop, diff --git a/packages/nextcloud/lib/src/webdav/webdav.g.dart b/packages/nextcloud/lib/src/webdav/webdav.g.dart index 6d5b2e0e..1007981f 100644 --- a/packages/nextcloud/lib/src/webdav/webdav.g.dart +++ b/packages/nextcloud/lib/src/webdav/webdav.g.dart @@ -289,7 +289,7 @@ void _$WebDavSetBuildXmlChildren(WebDavSet instance, XmlBuilder builder, {Map namespaces = const {}}) { - builder.element('propertyupdate', namespace: 'DAV:', namespaces: namespaces, nest: () { + builder.element('set', namespace: 'DAV:', namespaces: namespaces, nest: () { instance.buildXmlChildren(builder, namespaces: namespaces); }); } @@ -316,7 +316,7 @@ List _$WebDavSetToXmlChildren(WebDavSet instance, {Map XmlElement _$WebDavSetToXmlElement(WebDavSet instance, {Map namespaces = const {}}) { return XmlElement( - XmlName('propertyupdate', namespaces['DAV:']), + XmlName('set', namespaces['DAV:']), [...namespaces.toXmlAttributes(), ...instance.toXmlAttributes(namespaces: namespaces)], instance.toXmlChildren(namespaces: namespaces)); }