create static method
CreateChatInviteLink
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "createChatInviteLink",
- String special_return_type = "chatInviteLink",
- bool? is_tdlib_method,
- num? chat_id,
- String? name,
- num? expiration_date,
- num? member_limit,
- bool? creates_join_request,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static CreateChatInviteLink create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "createChatInviteLink",
String special_return_type = "chatInviteLink",
bool? is_tdlib_method,
num? chat_id,
String? name,
num? expiration_date,
num? member_limit,
bool? creates_join_request,
}) {
// CreateChatInviteLink createChatInviteLink = CreateChatInviteLink({
final Map createChatInviteLink_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"chat_id": chat_id,
"name": name,
"expiration_date": expiration_date,
"member_limit": member_limit,
"creates_join_request": creates_join_request,
};
createChatInviteLink_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (createChatInviteLink_data_create_json.containsKey(key) == false) {
createChatInviteLink_data_create_json[key] = value;
}
});
}
return CreateChatInviteLink(createChatInviteLink_data_create_json);
}