toJson method Null safety
override
Implementation
@override
Map<String, dynamic> toJson() {
final json = super.toJson();
json.addAll(_$MessageRetrievalParamsToJson(this));
json.removeWhere((key, value) => value == null);
return json;
}