Converts to JSON.
Map<String, dynamic> toJson() => { 'conditions': conditions.map((item) => item.toJson()).toList(), 'key': key, };