UserDetail.fromXml constructor
UserDetail.fromXml(
- XmlElement elem
Implementation
factory UserDetail.fromXml(_s.XmlElement elem) {
return UserDetail(
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'),
groupList: _s
.extractXmlChild(elem, 'GroupList')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
path: _s.extractXmlStringValue(elem, 'Path'),
permissionsBoundary: _s
.extractXmlChild(elem, 'PermissionsBoundary')
?.let((e) => AttachedPermissionsBoundary.fromXml(e)),
tags: _s.extractXmlChild(elem, 'Tags')?.let((elem) =>
elem.findElements('member').map((c) => Tag.fromXml(c)).toList()),
userId: _s.extractXmlStringValue(elem, 'UserId'),
userName: _s.extractXmlStringValue(elem, 'UserName'),
userPolicyList: _s.extractXmlChild(elem, 'UserPolicyList')?.let((elem) =>
elem
.findElements('member')
.map((c) => PolicyDetail.fromXml(c))
.toList()),
);
}