toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = _$ThreadedMessageListParamsToJson(this);
  json['include_replies'] = true;
  json['include_thread_info'] = true;
  json.removeWhere((key, value) => value == null);
  return json;
}