CompositeAlarm.fromXml constructor
CompositeAlarm.fromXml(
- XmlElement elem
Implementation
factory CompositeAlarm.fromXml(_s.XmlElement elem) {
return CompositeAlarm(
actionsEnabled: _s.extractXmlBoolValue(elem, 'ActionsEnabled'),
alarmActions: _s
.extractXmlChild(elem, 'AlarmActions')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
alarmArn: _s.extractXmlStringValue(elem, 'AlarmArn'),
alarmConfigurationUpdatedTimestamp: _s.extractXmlDateTimeValue(
elem, 'AlarmConfigurationUpdatedTimestamp'),
alarmDescription: _s.extractXmlStringValue(elem, 'AlarmDescription'),
alarmName: _s.extractXmlStringValue(elem, 'AlarmName'),
alarmRule: _s.extractXmlStringValue(elem, 'AlarmRule'),
insufficientDataActions: _s
.extractXmlChild(elem, 'InsufficientDataActions')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
oKActions: _s
.extractXmlChild(elem, 'OKActions')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
stateReason: _s.extractXmlStringValue(elem, 'StateReason'),
stateReasonData: _s.extractXmlStringValue(elem, 'StateReasonData'),
stateUpdatedTimestamp:
_s.extractXmlDateTimeValue(elem, 'StateUpdatedTimestamp'),
stateValue: _s.extractXmlStringValue(elem, 'StateValue')?.toStateValue(),
);
}