ScheduledAction.fromXml constructor

ScheduledAction.fromXml(
  1. XmlElement elem
)

Implementation

factory ScheduledAction.fromXml(_s.XmlElement elem) {
  return ScheduledAction(
    endTime: _s.extractXmlDateTimeValue(elem, 'EndTime'),
    iamRole: _s.extractXmlStringValue(elem, 'IamRole'),
    nextInvocations: _s.extractXmlChild(elem, 'NextInvocations')?.let(
        (elem) =>
            _s.extractXmlDateTimeListValues(elem, 'ScheduledActionTime')),
    schedule: _s.extractXmlStringValue(elem, 'Schedule'),
    scheduledActionDescription:
        _s.extractXmlStringValue(elem, 'ScheduledActionDescription'),
    scheduledActionName:
        _s.extractXmlStringValue(elem, 'ScheduledActionName'),
    startTime: _s.extractXmlDateTimeValue(elem, 'StartTime'),
    state: _s.extractXmlStringValue(elem, 'State')?.toScheduledActionState(),
    targetAction: _s
        .extractXmlChild(elem, 'TargetAction')
        ?.let((e) => ScheduledActionType.fromXml(e)),
  );
}