create static method
GetChatSparseMessagePositions
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "getChatSparseMessagePositions",
- String special_return_type = "messagePositions",
- bool? is_tdlib_method,
- num? chat_id,
- SearchMessagesFilter? filter,
- num? from_message_id,
- num? limit,
- num? saved_messages_topic_id,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static GetChatSparseMessagePositions create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "getChatSparseMessagePositions",
String special_return_type = "messagePositions",
bool? is_tdlib_method,
num? chat_id,
SearchMessagesFilter? filter,
num? from_message_id,
num? limit,
num? saved_messages_topic_id,
}) {
// GetChatSparseMessagePositions getChatSparseMessagePositions = GetChatSparseMessagePositions({
final Map getChatSparseMessagePositions_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"chat_id": chat_id,
"filter": (filter != null) ? filter.toJson() : null,
"from_message_id": from_message_id,
"limit": limit,
"saved_messages_topic_id": saved_messages_topic_id,
};
getChatSparseMessagePositions_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (getChatSparseMessagePositions_data_create_json.containsKey(key) == false) {
getChatSparseMessagePositions_data_create_json[key] = value;
}
});
}
return GetChatSparseMessagePositions(getChatSparseMessagePositions_data_create_json);
}