ListRuleNamesByTargetResponse.fromJson constructor

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

Implementation

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