RemoveMessageElement.fromStanza constructor

RemoveMessageElement.fromStanza(
  1. XmppElement stanza
)

Implementation

RemoveMessageElement.fromStanza(XmppElement stanza) {
  for (var attribute in stanza.attributes) {
    if (attribute.name == 'id') {
      _id = attribute.value;
    }

    addAttribute(attribute);
  }
  for (var child in stanza.children) {
    addChild(child);
  }
}