fromJson method

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

Implementation

Operator fromJson(Map<String, dynamic> json) {
  List<Operator> subList = [];
  json.entries.forEach((element) {
    subList.add(DFS(json: Map.fromEntries([element])));
  });
  if (subList.length > 1) {
    this.value = AndOperator(operators: subList);
  } else {
    this.value = subList.first;
  }

  return this.value;
}