Predicate.fromJson constructor

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

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(),
  );
}