Predicate.fromJson constructor
Implementation
factory Predicate.fromJson(Map<String, dynamic> json) {
return Predicate(
conditions: (json['Conditions'] as List?)
?.whereNotNull()
.map((e) => Condition.fromJson(e as Map<String, dynamic>))
.toList(),
logical: (json['Logical'] as String?)?.toLogical(),
);
}