ManagedPolicyDetail.fromXml constructor
ManagedPolicyDetail.fromXml(
- XmlElement elem
Implementation
factory ManagedPolicyDetail.fromXml(_s.XmlElement elem) {
return ManagedPolicyDetail(
arn: _s.extractXmlStringValue(elem, 'Arn'),
attachmentCount: _s.extractXmlIntValue(elem, 'AttachmentCount'),
createDate: _s.extractXmlDateTimeValue(elem, 'CreateDate'),
defaultVersionId: _s.extractXmlStringValue(elem, 'DefaultVersionId'),
description: _s.extractXmlStringValue(elem, 'Description'),
isAttachable: _s.extractXmlBoolValue(elem, 'IsAttachable'),
path: _s.extractXmlStringValue(elem, 'Path'),
permissionsBoundaryUsageCount:
_s.extractXmlIntValue(elem, 'PermissionsBoundaryUsageCount'),
policyId: _s.extractXmlStringValue(elem, 'PolicyId'),
policyName: _s.extractXmlStringValue(elem, 'PolicyName'),
policyVersionList: _s.extractXmlChild(elem, 'PolicyVersionList')?.let(
(elem) => elem
.findElements('member')
.map((c) => PolicyVersion.fromXml(c))
.toList()),
updateDate: _s.extractXmlDateTimeValue(elem, 'UpdateDate'),
);
}