InstanceProfile.fromXml constructor
InstanceProfile.fromXml(
- XmlElement elem
Implementation
factory InstanceProfile.fromXml(_s.XmlElement elem) {
return InstanceProfile(
arn: _s.extractXmlStringValue(elem, 'Arn')!,
createDate: _s.extractXmlDateTimeValue(elem, 'CreateDate')!,
instanceProfileId: _s.extractXmlStringValue(elem, 'InstanceProfileId')!,
instanceProfileName:
_s.extractXmlStringValue(elem, 'InstanceProfileName')!,
path: _s.extractXmlStringValue(elem, 'Path')!,
roles: _s
.extractXmlChild(elem, 'Roles')!
.findElements('member')
.map((c) => Role.fromXml(c))
.toList(),
);
}