ListTopicRuleDestinationsResponse.fromJson constructor

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

Implementation

factory ListTopicRuleDestinationsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListTopicRuleDestinationsResponse(
    destinationSummaries: (json['destinationSummaries'] as List?)
        ?.whereNotNull()
        .map((e) =>
            TopicRuleDestinationSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}