ServiceLastAccessed.fromXml constructor

ServiceLastAccessed.fromXml(
  1. XmlElement elem
)

Implementation

factory ServiceLastAccessed.fromXml(_s.XmlElement elem) {
  return ServiceLastAccessed(
    serviceName: _s.extractXmlStringValue(elem, 'ServiceName')!,
    serviceNamespace: _s.extractXmlStringValue(elem, 'ServiceNamespace')!,
    lastAuthenticated: _s.extractXmlDateTimeValue(elem, 'LastAuthenticated'),
    lastAuthenticatedEntity:
        _s.extractXmlStringValue(elem, 'LastAuthenticatedEntity'),
    lastAuthenticatedRegion:
        _s.extractXmlStringValue(elem, 'LastAuthenticatedRegion'),
    totalAuthenticatedEntities:
        _s.extractXmlIntValue(elem, 'TotalAuthenticatedEntities'),
    trackedActionsLastAccessed: _s
        .extractXmlChild(elem, 'TrackedActionsLastAccessed')
        ?.let((elem) => elem
            .findElements('member')
            .map((c) => TrackedActionLastAccessed.fromXml(c))
            .toList()),
  );
}