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