AlarmHistoryItem.fromXml constructor

AlarmHistoryItem.fromXml(
  1. XmlElement elem
)

Implementation

factory AlarmHistoryItem.fromXml(_s.XmlElement elem) {
  return AlarmHistoryItem(
    alarmName: _s.extractXmlStringValue(elem, 'AlarmName'),
    alarmType: _s.extractXmlStringValue(elem, 'AlarmType')?.toAlarmType(),
    historyData: _s.extractXmlStringValue(elem, 'HistoryData'),
    historyItemType: _s
        .extractXmlStringValue(elem, 'HistoryItemType')
        ?.toHistoryItemType(),
    historySummary: _s.extractXmlStringValue(elem, 'HistorySummary'),
    timestamp: _s.extractXmlDateTimeValue(elem, 'Timestamp'),
  );
}