toJson method

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

Creates a Map Object that can be send to the Backend. (Should be json encoded)

Implementation

@override
Map<String, dynamic> toJson() => {
      '\$${operator.name}':
          conditions.map((condition) => condition.toJson()).toList(),
    };