UpdateAction.fromXml constructor

UpdateAction.fromXml(
  1. XmlElement elem
)

Implementation

factory UpdateAction.fromXml(_s.XmlElement elem) {
  return UpdateAction(
    cacheClusterId: _s.extractXmlStringValue(elem, 'CacheClusterId'),
    cacheNodeUpdateStatus: _s
        .extractXmlChild(elem, 'CacheNodeUpdateStatus')
        ?.let((elem) => elem
            .findElements('CacheNodeUpdateStatus')
            .map((c) => CacheNodeUpdateStatus.fromXml(c))
            .toList()),
    engine: _s.extractXmlStringValue(elem, 'Engine'),
    estimatedUpdateTime:
        _s.extractXmlStringValue(elem, 'EstimatedUpdateTime'),
    nodeGroupUpdateStatus: _s
        .extractXmlChild(elem, 'NodeGroupUpdateStatus')
        ?.let((elem) => elem
            .findElements('NodeGroupUpdateStatus')
            .map((c) => NodeGroupUpdateStatus.fromXml(c))
            .toList()),
    nodesUpdated: _s.extractXmlStringValue(elem, 'NodesUpdated'),
    replicationGroupId: _s.extractXmlStringValue(elem, 'ReplicationGroupId'),
    serviceUpdateName: _s.extractXmlStringValue(elem, 'ServiceUpdateName'),
    serviceUpdateRecommendedApplyByDate: _s.extractXmlDateTimeValue(
        elem, 'ServiceUpdateRecommendedApplyByDate'),
    serviceUpdateReleaseDate:
        _s.extractXmlDateTimeValue(elem, 'ServiceUpdateReleaseDate'),
    serviceUpdateSeverity: _s
        .extractXmlStringValue(elem, 'ServiceUpdateSeverity')
        ?.toServiceUpdateSeverity(),
    serviceUpdateStatus: _s
        .extractXmlStringValue(elem, 'ServiceUpdateStatus')
        ?.toServiceUpdateStatus(),
    serviceUpdateType: _s
        .extractXmlStringValue(elem, 'ServiceUpdateType')
        ?.toServiceUpdateType(),
    slaMet: _s.extractXmlStringValue(elem, 'SlaMet')?.toSlaMet(),
    updateActionAvailableDate:
        _s.extractXmlDateTimeValue(elem, 'UpdateActionAvailableDate'),
    updateActionStatus: _s
        .extractXmlStringValue(elem, 'UpdateActionStatus')
        ?.toUpdateActionStatus(),
    updateActionStatusModifiedDate:
        _s.extractXmlDateTimeValue(elem, 'UpdateActionStatusModifiedDate'),
  );
}