toJson method

Map<String, dynamic> toJson()

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(),
  };
}