create static method
SetPinnedForumTopics
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "setPinnedForumTopics",
- String special_return_type = "ok",
- bool? is_tdlib_method,
- num? chat_id,
- List<
num> ? message_thread_ids,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static SetPinnedForumTopics create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "setPinnedForumTopics",
String special_return_type = "ok",
bool? is_tdlib_method,
num? chat_id,
List<num>? message_thread_ids,
}) {
// SetPinnedForumTopics setPinnedForumTopics = SetPinnedForumTopics({
final Map setPinnedForumTopics_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"chat_id": chat_id,
"message_thread_ids": message_thread_ids,
};
setPinnedForumTopics_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (setPinnedForumTopics_data_create_json.containsKey(key) == false) {
setPinnedForumTopics_data_create_json[key] = value;
}
});
}
return SetPinnedForumTopics(setPinnedForumTopics_data_create_json);
}