Rule.fromJson constructor
Implementation
factory Rule.fromJson(Map<String, dynamic> json) {
return Rule(
predicates: (json['Predicates'] as List)
.whereNotNull()
.map((e) => Predicate.fromJson(e as Map<String, dynamic>))
.toList(),
ruleId: json['RuleId'] as String,
metricName: json['MetricName'] as String?,
name: json['Name'] as String?,
);
}