create static method
BasicGroupFullInfo
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "basicGroupFullInfo",
- String special_return_type = "basicGroupFullInfo",
- ChatPhoto? photo,
- String? description,
- num? creator_user_id,
- List<
ChatMember> ? members, - bool? can_hide_members,
- bool? can_toggle_aggressive_anti_spam,
- ChatInviteLink? invite_link,
- List<
BotCommands> ? bot_commands,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static BasicGroupFullInfo create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "basicGroupFullInfo",
String special_return_type = "basicGroupFullInfo",
ChatPhoto? photo,
String? description,
num? creator_user_id,
List<ChatMember>? members,
bool? can_hide_members,
bool? can_toggle_aggressive_anti_spam,
ChatInviteLink? invite_link,
List<BotCommands>? bot_commands,
}) {
// BasicGroupFullInfo basicGroupFullInfo = BasicGroupFullInfo({
final Map basicGroupFullInfo_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"photo": (photo != null) ? photo.toJson() : null,
"description": description,
"creator_user_id": creator_user_id,
"members": (members != null) ? members.toJson() : null,
"can_hide_members": can_hide_members,
"can_toggle_aggressive_anti_spam": can_toggle_aggressive_anti_spam,
"invite_link": (invite_link != null) ? invite_link.toJson() : null,
"bot_commands": (bot_commands != null) ? bot_commands.toJson() : null,
};
basicGroupFullInfo_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (basicGroupFullInfo_data_create_json.containsKey(key) == false) {
basicGroupFullInfo_data_create_json[key] = value;
}
});
}
return BasicGroupFullInfo(basicGroupFullInfo_data_create_json);
}