toJson method

Map<String, dynamic> toJson ()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': this.id.toString(),
    'clause': {
      'conjunction': this.conjunction.toString(),
      'clauses': this.clauses?.map((e) => e.toJson())?.toList() ?? []
    }
  };
}