User.fromXml constructor
User.fromXml(
- XmlElement elem
Implementation
factory User.fromXml(_s.XmlElement elem) {
return User(
arn: _s.extractXmlStringValue(elem, 'Arn')!,
createDate: _s.extractXmlDateTimeValue(elem, 'CreateDate')!,
path: _s.extractXmlStringValue(elem, 'Path')!,
userId: _s.extractXmlStringValue(elem, 'UserId')!,
userName: _s.extractXmlStringValue(elem, 'UserName')!,
passwordLastUsed: _s.extractXmlDateTimeValue(elem, 'PasswordLastUsed'),
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()),
);
}