toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var conditionsTree = this.conditionsTree;
  var postFunctions = this.postFunctions;
  var validators = this.validators;

  final json = <String, Object?>{};
  if (conditionsTree != null) {
    json[r'conditionsTree'] = conditionsTree.toJson();
  }
  json[r'postFunctions'] = postFunctions.map((i) => i.toJson()).toList();
  json[r'validators'] = validators.map((i) => i.toJson()).toList();
  return json;
}