DescribeChangeSetOutput.fromXml constructor

DescribeChangeSetOutput.fromXml(
  1. XmlElement elem
)

Implementation

factory DescribeChangeSetOutput.fromXml(_s.XmlElement elem) {
  return DescribeChangeSetOutput(
    capabilities: _s.extractXmlChild(elem, 'Capabilities')?.let((elem) => _s
        .extractXmlStringListValues(elem, 'member')
        .map((s) => s.toCapability())
        .toList()),
    changeSetId: _s.extractXmlStringValue(elem, 'ChangeSetId'),
    changeSetName: _s.extractXmlStringValue(elem, 'ChangeSetName'),
    changes: _s.extractXmlChild(elem, 'Changes')?.let((elem) =>
        elem.findElements('member').map((c) => Change.fromXml(c)).toList()),
    creationTime: _s.extractXmlDateTimeValue(elem, 'CreationTime'),
    description: _s.extractXmlStringValue(elem, 'Description'),
    executionStatus: _s
        .extractXmlStringValue(elem, 'ExecutionStatus')
        ?.toExecutionStatus(),
    includeNestedStacks: _s.extractXmlBoolValue(elem, 'IncludeNestedStacks'),
    nextToken: _s.extractXmlStringValue(elem, 'NextToken'),
    notificationARNs: _s
        .extractXmlChild(elem, 'NotificationARNs')
        ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
    parameters: _s.extractXmlChild(elem, 'Parameters')?.let((elem) => elem
        .findElements('member')
        .map((c) => Parameter.fromXml(c))
        .toList()),
    parentChangeSetId: _s.extractXmlStringValue(elem, 'ParentChangeSetId'),
    rollbackConfiguration: _s
        .extractXmlChild(elem, 'RollbackConfiguration')
        ?.let((e) => RollbackConfiguration.fromXml(e)),
    rootChangeSetId: _s.extractXmlStringValue(elem, 'RootChangeSetId'),
    stackId: _s.extractXmlStringValue(elem, 'StackId'),
    stackName: _s.extractXmlStringValue(elem, 'StackName'),
    status: _s.extractXmlStringValue(elem, 'Status')?.toChangeSetStatus(),
    statusReason: _s.extractXmlStringValue(elem, 'StatusReason'),
    tags: _s.extractXmlChild(elem, 'Tags')?.let((elem) =>
        elem.findElements('member').map((c) => Tag.fromXml(c)).toList()),
  );
}