create static method
UpdateNewChatJoinRequest
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "updateNewChatJoinRequest",
- String special_return_type = "update",
- num? chat_id,
- ChatJoinRequest? request,
- num? user_chat_id,
- ChatInviteLink? invite_link,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static UpdateNewChatJoinRequest create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "updateNewChatJoinRequest",
String special_return_type = "update",
num? chat_id,
ChatJoinRequest? request,
num? user_chat_id,
ChatInviteLink? invite_link,
}) {
// UpdateNewChatJoinRequest updateNewChatJoinRequest = UpdateNewChatJoinRequest({
final Map updateNewChatJoinRequest_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"chat_id": chat_id,
"request": (request != null) ? request.toJson() : null,
"user_chat_id": user_chat_id,
"invite_link": (invite_link != null) ? invite_link.toJson() : null,
};
updateNewChatJoinRequest_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (updateNewChatJoinRequest_data_create_json.containsKey(key) == false) {
updateNewChatJoinRequest_data_create_json[key] = value;
}
});
}
return UpdateNewChatJoinRequest(updateNewChatJoinRequest_data_create_json);
}