toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var conditions = this.conditions;
  var configuration = this.configuration;
  var operator$ = this.operator$;
  var type = this.type;

  final json = <String, Object?>{};
  json[r'conditions'] = conditions.map((i) => i.toJson()).toList();
  if (configuration != null) {
    json[r'configuration'] = configuration;
  }
  if (operator$ != null) {
    json[r'operator'] = operator$.value;
  }
  if (type != null) {
    json[r'type'] = type;
  }
  return json;
}