Map<String, dynamic> toMap() { return <String, dynamic>{ 'key': ?key, 'operator': ?operator, 'type': type, 'value': ?value, }; }