convert method

  1. @override
WebDavStdResourceProp<LockDiscovery<O>> convert(
  1. ({String? desc, WebDavStdResError? error, XmlElement node, int status}) input
)
inherited

Converts input and returns the result of the conversion.

Implementation

@override
WebDavStdResourceProp<T> convert(
    ({
      String? desc,
      WebDavStdResError? error,
      XmlElement node,
      int status
    }) input) {
  final nsurl = input.node.namespaceUri;
  return WebDavStdResourceProp<T>(
    name: input.node.localName.trim(),
    namespace: nsurl != null ? Uri.tryParse(nsurl) : null,
    status: input.status,
    desc: input.desc,
    error: input.error,
    value: convertValue(input.node),
    lang: input.node.getAttribute(kXmlLangAttrName),
  );
}