TopicConfiguration.fromXml constructor

TopicConfiguration.fromXml(
  1. XmlElement elem
)

Implementation

factory TopicConfiguration.fromXml(_s.XmlElement elem) {
  return TopicConfiguration(
    events: _s
        .extractXmlStringListValues(elem, 'Event')
        .map((s) => s.toEvent())
        .toList(),
    topicArn: _s.extractXmlStringValue(elem, 'Topic')!,
    filter: _s
        .extractXmlChild(elem, 'Filter')
        ?.let((e) => NotificationConfigurationFilter.fromXml(e)),
    id: _s.extractXmlStringValue(elem, 'Id'),
  );
}