Condition.fromJson constructor

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

Implementation

factory Condition.fromJson(Map<String, dynamic> json) {
  return Condition(
    conditions: (json['Conditions'] as List?)
        ?.whereNotNull()
        .map((e) => SimpleCondition.fromJson(e as Map<String, dynamic>))
        .toList(),
    operator: (json['Operator'] as String?)?.toOperator(),
  );
}