Subscription.fromJson constructor
Implementation
factory Subscription.fromJson(Map<String, dynamic> json) {
return Subscription(
eventSubscriptions: (json['eventSubscriptions'] as List)
.whereNotNull()
.map((e) => EventSubscription.fromJson(e as Map<String, dynamic>))
.toList(),
resourceArn: json['resourceArn'] as String,
topicArn: json['topicArn'] as String,
);
}