EnvironmentResourceDescription.fromXml constructor

EnvironmentResourceDescription.fromXml(
  1. XmlElement elem
)

Implementation

factory EnvironmentResourceDescription.fromXml(_s.XmlElement elem) {
  return EnvironmentResourceDescription(
    autoScalingGroups: _s.extractXmlChild(elem, 'AutoScalingGroups')?.let(
        (elem) => elem
            .findElements('member')
            .map((c) => AutoScalingGroup.fromXml(c))
            .toList()),
    environmentName: _s.extractXmlStringValue(elem, 'EnvironmentName'),
    instances: _s.extractXmlChild(elem, 'Instances')?.let((elem) =>
        elem.findElements('member').map((c) => Instance.fromXml(c)).toList()),
    launchConfigurations: _s
        .extractXmlChild(elem, 'LaunchConfigurations')
        ?.let((elem) => elem
            .findElements('member')
            .map((c) => LaunchConfiguration.fromXml(c))
            .toList()),
    launchTemplates: _s.extractXmlChild(elem, 'LaunchTemplates')?.let(
        (elem) => elem
            .findElements('member')
            .map((c) => LaunchTemplate.fromXml(c))
            .toList()),
    loadBalancers: _s.extractXmlChild(elem, 'LoadBalancers')?.let((elem) =>
        elem
            .findElements('member')
            .map((c) => LoadBalancer.fromXml(c))
            .toList()),
    queues: _s.extractXmlChild(elem, 'Queues')?.let((elem) =>
        elem.findElements('member').map((c) => Queue.fromXml(c)).toList()),
    triggers: _s.extractXmlChild(elem, 'Triggers')?.let((elem) =>
        elem.findElements('member').map((c) => Trigger.fromXml(c)).toList()),
  );
}