toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final conditions = this.conditions;
  final operator = this.operator;
  return {
    if (conditions != null) 'Conditions': conditions,
    if (operator != null) 'Operator': operator.toValue(),
  };
}