toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final and = this.and;
  final costCategories = this.costCategories;
  final dimensions = this.dimensions;
  final not = this.not;
  final or = this.or;
  final tags = this.tags;
  return {
    if (and != null) 'And': and,
    if (costCategories != null) 'CostCategories': costCategories,
    if (dimensions != null) 'Dimensions': dimensions,
    if (not != null) 'Not': not,
    if (or != null) 'Or': or,
    if (tags != null) 'Tags': tags,
  };
}