DescribeSubscribersForNotificationResponse.fromJson constructor

DescribeSubscribersForNotificationResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DescribeSubscribersForNotificationResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeSubscribersForNotificationResponse(
    nextToken: json['NextToken'] as String?,
    subscribers: (json['Subscribers'] as List?)
        ?.whereNotNull()
        .map((e) => Subscriber.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}