toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final attribute = this.attribute;
  final operator = this.operator;
  final values = this.values;
  return {
    if (attribute != null) 'Attribute': attribute,
    if (operator != null) 'Operator': operator,
    if (values != null) 'Values': values,
  };
}