LambdaFunctionConfiguration.fromXml constructor

LambdaFunctionConfiguration.fromXml(
  1. XmlElement elem
)

Implementation

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