Subscription.fromXml constructor

Subscription.fromXml(
  1. XmlElement elem
)

Implementation

factory Subscription.fromXml(_s.XmlElement elem) {
  return Subscription(
    endpoint: _s.extractXmlStringValue(elem, 'Endpoint'),
    owner: _s.extractXmlStringValue(elem, 'Owner'),
    protocol: _s.extractXmlStringValue(elem, 'Protocol'),
    subscriptionArn: _s.extractXmlStringValue(elem, 'SubscriptionArn'),
    topicArn: _s.extractXmlStringValue(elem, 'TopicArn'),
  );
}