GetRulesResult.fromJson constructor

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

Implementation

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