create static method
InputInvoice
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "inputInvoice",
- bool special_is_json_scheme_class = true,
- String special_return_type = "inputInvoice",
- InputInvoiceMessage? input_invoice_message,
- InputInvoiceName? input_invoice_name,
- InputInvoiceTelegram? input_invoice_telegram,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static InputInvoice create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "inputInvoice",
bool special_is_json_scheme_class = true,
String special_return_type = "inputInvoice",
InputInvoiceMessage? input_invoice_message,
InputInvoiceName? input_invoice_name,
InputInvoiceTelegram? input_invoice_telegram,
}) {
// InputInvoice inputInvoice = InputInvoice({
final Map inputInvoice_data_create_json = {
"@type": special_type,
"@is_json_scheme_class": special_is_json_scheme_class,
"@return_type": special_return_type,
"input_invoice_message": (input_invoice_message != null) ? input_invoice_message.toJson() : null,
"input_invoice_name": (input_invoice_name != null) ? input_invoice_name.toJson() : null,
"input_invoice_telegram": (input_invoice_telegram != null) ? input_invoice_telegram.toJson() : null,
};
inputInvoice_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (inputInvoice_data_create_json.containsKey(key) == false) {
inputInvoice_data_create_json[key] = value;
}
});
}
return InputInvoice(inputInvoice_data_create_json);
}