create static method
MessageCopyOptions
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "messageCopyOptions",
- String special_return_type = "messageCopyOptions",
- bool? send_copy,
- bool? replace_caption,
- FormattedText? new_caption,
- bool? new_show_caption_above_media,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static MessageCopyOptions create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "messageCopyOptions",
String special_return_type = "messageCopyOptions",
bool? send_copy,
bool? replace_caption,
FormattedText? new_caption,
bool? new_show_caption_above_media,
}) {
// MessageCopyOptions messageCopyOptions = MessageCopyOptions({
final Map messageCopyOptions_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"send_copy": send_copy,
"replace_caption": replace_caption,
"new_caption": (new_caption != null) ? new_caption.toJson() : null,
"new_show_caption_above_media": new_show_caption_above_media,
};
messageCopyOptions_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (messageCopyOptions_data_create_json.containsKey(key) == false) {
messageCopyOptions_data_create_json[key] = value;
}
});
}
return MessageCopyOptions(messageCopyOptions_data_create_json);
}