toJson method
Implementation
Map<String, dynamic> toJson() {
final json = _$BaseMessageFetchParamsToJson(this);
// ignore: deprecated_member_use_from_same_package
final replies = includeReplies;
// ignore: deprecated_member_use_from_same_package
final parentText = includeParentMessageText ?? includeParentMessageText;
if (replies != null) {
json['include_reply_type'] = replies ? 'ALL' : 'NONE';
}
if (parentText != null) {
json['include_parent_message_info'] = parentText;
}
json.removeWhere((key, value) => value == null);
return json;
}