PolicyGrantingServiceAccess.fromXml constructor

PolicyGrantingServiceAccess.fromXml(
  1. XmlElement elem
)

Implementation

factory PolicyGrantingServiceAccess.fromXml(_s.XmlElement elem) {
  return PolicyGrantingServiceAccess(
    policyName: _s.extractXmlStringValue(elem, 'PolicyName')!,
    policyType: _s.extractXmlStringValue(elem, 'PolicyType')!.toPolicyType(),
    entityName: _s.extractXmlStringValue(elem, 'EntityName'),
    entityType: _s
        .extractXmlStringValue(elem, 'EntityType')
        ?.toPolicyOwnerEntityType(),
    policyArn: _s.extractXmlStringValue(elem, 'PolicyArn'),
  );
}