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