create static method
MessageChatShared
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "messageChatShared",
- String special_return_type = "messageContent",
- SharedChat? chat,
- num? button_id,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static MessageChatShared create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "messageChatShared",
String special_return_type = "messageContent",
SharedChat? chat,
num? button_id,
}) {
// MessageChatShared messageChatShared = MessageChatShared({
final Map messageChatShared_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"chat": (chat != null) ? chat.toJson() : null,
"button_id": button_id,
};
messageChatShared_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (messageChatShared_data_create_json.containsKey(key) == false) {
messageChatShared_data_create_json[key] = value;
}
});
}
return MessageChatShared(messageChatShared_data_create_json);
}