create static method
InputMessageDocument
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "inputMessageDocument",
- String special_return_type = "inputMessageContent",
- InputFile? document,
- InputThumbnail? thumbnail,
- bool? disable_content_type_detection,
- FormattedText? caption,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static InputMessageDocument create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "inputMessageDocument",
String special_return_type = "inputMessageContent",
InputFile? document,
InputThumbnail? thumbnail,
bool? disable_content_type_detection,
FormattedText? caption,
}) {
// InputMessageDocument inputMessageDocument = InputMessageDocument({
final Map inputMessageDocument_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"document": (document != null) ? document.toJson() : null,
"thumbnail": (thumbnail != null) ? thumbnail.toJson() : null,
"disable_content_type_detection": disable_content_type_detection,
"caption": (caption != null) ? caption.toJson() : null,
};
inputMessageDocument_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (inputMessageDocument_data_create_json.containsKey(key) == false) {
inputMessageDocument_data_create_json[key] = value;
}
});
}
return InputMessageDocument(inputMessageDocument_data_create_json);
}