NodeGroup.fromXml constructor
NodeGroup.fromXml(
- XmlElement elem
Implementation
factory NodeGroup.fromXml(_s.XmlElement elem) {
return NodeGroup(
nodeGroupId: _s.extractXmlStringValue(elem, 'NodeGroupId'),
nodeGroupMembers: _s.extractXmlChild(elem, 'NodeGroupMembers')?.let(
(elem) => elem
.findElements('NodeGroupMember')
.map((c) => NodeGroupMember.fromXml(c))
.toList()),
primaryEndpoint: _s
.extractXmlChild(elem, 'PrimaryEndpoint')
?.let((e) => Endpoint.fromXml(e)),
readerEndpoint: _s
.extractXmlChild(elem, 'ReaderEndpoint')
?.let((e) => Endpoint.fromXml(e)),
slots: _s.extractXmlStringValue(elem, 'Slots'),
status: _s.extractXmlStringValue(elem, 'Status'),
);
}