ListNotificationRulesResult.fromJson constructor Null safety

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

Implementation

factory ListNotificationRulesResult.fromJson(Map<String, dynamic> json) {
  return ListNotificationRulesResult(
    nextToken: json['NextToken'] as String?,
    notificationRules: (json['NotificationRules'] as List?)
        ?.whereNotNull()
        .map((e) =>
            NotificationRuleSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}