ListRuleGroupsResponse.fromJson constructor

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

Implementation

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