SNSAction.fromXml constructor

SNSAction.fromXml(
  1. XmlElement elem
)

Implementation

factory SNSAction.fromXml(_s.XmlElement elem) {
  return SNSAction(
    topicArn: _s.extractXmlStringValue(elem, 'TopicArn')!,
    encoding:
        _s.extractXmlStringValue(elem, 'Encoding')?.toSNSActionEncoding(),
  );
}