Endpoint.fromXml constructor
Endpoint.fromXml(
- XmlElement elem
Implementation
factory Endpoint.fromXml(_s.XmlElement elem) {
return Endpoint(
attributes: Map.fromEntries(
elem.getElement('Attributes')?.findElements('entry').map(
(c) => MapEntry(
_s.extractXmlStringValue(c, 'key')!,
_s.extractXmlStringValue(c, 'value')!,
),
) ??
{},
),
endpointArn: _s.extractXmlStringValue(elem, 'EndpointArn'),
);
}