ListTopicRulesResponse.fromJson constructor

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

Implementation

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