EntityInfo.fromXml constructor

EntityInfo.fromXml(
  1. XmlElement elem
)

Implementation

factory EntityInfo.fromXml(_s.XmlElement elem) {
  return EntityInfo(
    arn: _s.extractXmlStringValue(elem, 'Arn')!,
    id: _s.extractXmlStringValue(elem, 'Id')!,
    name: _s.extractXmlStringValue(elem, 'Name')!,
    type: _s.extractXmlStringValue(elem, 'Type')!.toPolicyOwnerEntityType(),
    path: _s.extractXmlStringValue(elem, 'Path'),
  );
}