SelectObjectContentEventStream.fromXml constructor

SelectObjectContentEventStream.fromXml(
  1. XmlElement elem
)

Implementation

factory SelectObjectContentEventStream.fromXml(_s.XmlElement elem) {
  return SelectObjectContentEventStream(
    cont: _s
        .extractXmlChild(elem, 'Cont')
        ?.let((e) => ContinuationEvent.fromXml(e)),
    end: _s.extractXmlChild(elem, 'End')?.let((e) => EndEvent.fromXml(e)),
    progress: _s
        .extractXmlChild(elem, 'Progress')
        ?.let((e) => ProgressEvent.fromXml(e)),
    records: _s
        .extractXmlChild(elem, 'Records')
        ?.let((e) => RecordsEvent.fromXml(e)),
    stats:
        _s.extractXmlChild(elem, 'Stats')?.let((e) => StatsEvent.fromXml(e)),
  );
}