create static method

CreateInvoiceLink create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "createInvoiceLink",
  3. String special_return_type = "httpUrl",
  4. bool? is_tdlib_method,
  5. String? business_connection_id,
  6. InputMessageContent? invoice,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static CreateInvoiceLink create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "createInvoiceLink",
  String special_return_type = "httpUrl",
  bool? is_tdlib_method,
  String? business_connection_id,
  InputMessageContent? invoice,
}) {
  // CreateInvoiceLink createInvoiceLink = CreateInvoiceLink({
  final Map createInvoiceLink_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "business_connection_id": business_connection_id,
    "invoice": (invoice != null) ? invoice.toJson() : null,
  };

  createInvoiceLink_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (createInvoiceLink_data_create_json.containsKey(key) == false) {
        createInvoiceLink_data_create_json[key] = value;
      }
    });
  }
  return CreateInvoiceLink(createInvoiceLink_data_create_json);
}