ListSubscribedRuleGroupsResponse.fromJson constructor

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

Implementation

factory ListSubscribedRuleGroupsResponse.fromJson(Map<String, dynamic> json) {
  return ListSubscribedRuleGroupsResponse(
    nextMarker: json['NextMarker'] as String?,
    ruleGroups: (json['RuleGroups'] as List?)
        ?.whereNotNull()
        .map((e) =>
            SubscribedRuleGroupSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}