ListAvailableManagedRuleGroupsResponse.fromJson constructor

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

Implementation

factory ListAvailableManagedRuleGroupsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListAvailableManagedRuleGroupsResponse(
    managedRuleGroups: (json['ManagedRuleGroups'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ManagedRuleGroupSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextMarker: json['NextMarker'] as String?,
  );
}