toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var expression = this.expression;
  var filter = this.filter;
  var value = this.value;

  final json = <String, Object?>{};
  if (expression != null) {
    json[r'expression'] = expression;
  }
  if (filter != null) {
    json[r'filter'] = filter.toJson();
  }
  if (value != null) {
    json[r'value'] = value;
  }
  return json;
}