GroupDetail.fromXml constructor

GroupDetail.fromXml(
  1. XmlElement elem
)

Implementation

factory GroupDetail.fromXml(_s.XmlElement elem) {
  return GroupDetail(
    arn: _s.extractXmlStringValue(elem, 'Arn'),
    attachedManagedPolicies: _s
        .extractXmlChild(elem, 'AttachedManagedPolicies')
        ?.let((elem) => elem
            .findElements('member')
            .map((c) => AttachedPolicy.fromXml(c))
            .toList()),
    createDate: _s.extractXmlDateTimeValue(elem, 'CreateDate'),
    groupId: _s.extractXmlStringValue(elem, 'GroupId'),
    groupName: _s.extractXmlStringValue(elem, 'GroupName'),
    groupPolicyList: _s.extractXmlChild(elem, 'GroupPolicyList')?.let(
        (elem) => elem
            .findElements('member')
            .map((c) => PolicyDetail.fromXml(c))
            .toList()),
    path: _s.extractXmlStringValue(elem, 'Path'),
  );
}