ChatStateElement.fromStanza constructor

ChatStateElement.fromStanza(
  1. XmppElement stanza
)

Implementation

ChatStateElement.fromStanza(XmppElement stanza) {
  state = stateFromString(stanza.name!);
  for (var attribute in stanza.attributes) {
    addAttribute(attribute);
  }
  for (var child in stanza.children) {
    addChild(child);
  }
}