ScheduledActionType.fromXml constructor

ScheduledActionType.fromXml(
  1. XmlElement elem
)

Implementation

factory ScheduledActionType.fromXml(_s.XmlElement elem) {
  return ScheduledActionType(
    pauseCluster: _s
        .extractXmlChild(elem, 'PauseCluster')
        ?.let((e) => PauseClusterMessage.fromXml(e)),
    resizeCluster: _s
        .extractXmlChild(elem, 'ResizeCluster')
        ?.let((e) => ResizeClusterMessage.fromXml(e)),
    resumeCluster: _s
        .extractXmlChild(elem, 'ResumeCluster')
        ?.let((e) => ResumeClusterMessage.fromXml(e)),
  );
}