convert method

Converts input and returns the result of the conversion.

Implementation

@override
WebDavStdResResultView convert(ResponseResultParserParam input) {
  final doc = (input.headers.contentType?.isXml ?? false)
      ? XmlDocument.parse(input.data)
      : null;
  final multistatusParser = parserManger.multistatus;
  return doc != null && multistatusParser != null
      ? multistatusParser.convert(doc.rootElement) ??
          WebDavStdResponseResult()
      : WebDavStdResponseResult();
}