SendMessageBatchResult.fromXml constructor

SendMessageBatchResult.fromXml(
  1. XmlElement elem
)

Implementation

factory SendMessageBatchResult.fromXml(_s.XmlElement elem) {
  return SendMessageBatchResult(
    failed: elem
        .findElements('BatchResultErrorEntry')
        .map((c) => BatchResultErrorEntry.fromXml(c))
        .toList(),
    successful: elem
        .findElements('SendMessageBatchResultEntry')
        .map((c) => SendMessageBatchResultEntry.fromXml(c))
        .toList(),
  );
}