Policy.fromXml constructor

Policy.fromXml(
  1. XmlElement elem
)

Implementation

factory Policy.fromXml(_s.XmlElement elem) {
  return Policy(
    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'),
    updateDate: _s.extractXmlDateTimeValue(elem, 'UpdateDate'),
  );
}