UpdateActionResultsMessage.fromXml constructor

UpdateActionResultsMessage.fromXml(
  1. XmlElement elem
)

Implementation

factory UpdateActionResultsMessage.fromXml(_s.XmlElement elem) {
  return UpdateActionResultsMessage(
    processedUpdateActions: _s
        .extractXmlChild(elem, 'ProcessedUpdateActions')
        ?.let((elem) => elem
            .findElements('ProcessedUpdateAction')
            .map((c) => ProcessedUpdateAction.fromXml(c))
            .toList()),
    unprocessedUpdateActions: _s
        .extractXmlChild(elem, 'UnprocessedUpdateActions')
        ?.let((elem) => elem
            .findElements('UnprocessedUpdateAction')
            .map((c) => UnprocessedUpdateAction.fromXml(c))
            .toList()),
  );
}