toJson method

  1. @override
Map<String, dynamic> toJson()
override

Serializes this instance to a JSON object.

Implementation

@override
Map<String, dynamic> toJson() => {
      if (_condition != null) 'condition': _getCondition(),
      'operations': _ops.map((o) => o.toJson()).toList(),
    };