copyWith method

WebApiModulesReportsDealReportsCreditsOnAccountReportCreditsOnAccountReportRequest copyWith({
  1. String? officeLocationId,
  2. String? customerId,
  3. String? dealId,
  4. bool? onlyRemaining,
  5. String? userDepartmentId,
  6. String? userLocationId,
  7. String? userWarehouseId,
  8. String? customReportLayoutId,
  9. bool? isSummary,
  10. bool? includeSubHeadingsAndSubTotals,
  11. bool? includeIdColumns,
  12. String? locale,
  13. List<FwStandardModelsCheckBoxListItem>? excelfields,
  14. String? reportName,
  15. bool? useEmailTemplate,
})

Implementation

WebApiModulesReportsDealReportsCreditsOnAccountReportCreditsOnAccountReportRequest
    copyWith(
        {String? officeLocationId,
        String? customerId,
        String? dealId,
        bool? onlyRemaining,
        String? userDepartmentId,
        String? userLocationId,
        String? userWarehouseId,
        String? customReportLayoutId,
        bool? isSummary,
        bool? includeSubHeadingsAndSubTotals,
        bool? includeIdColumns,
        String? locale,
        List<FwStandardModelsCheckBoxListItem>? excelfields,
        String? reportName,
        bool? useEmailTemplate}) {
  return WebApiModulesReportsDealReportsCreditsOnAccountReportCreditsOnAccountReportRequest(
      officeLocationId: officeLocationId ?? this.officeLocationId,
      customerId: customerId ?? this.customerId,
      dealId: dealId ?? this.dealId,
      onlyRemaining: onlyRemaining ?? this.onlyRemaining,
      userDepartmentId: userDepartmentId ?? this.userDepartmentId,
      userLocationId: userLocationId ?? this.userLocationId,
      userWarehouseId: userWarehouseId ?? this.userWarehouseId,
      customReportLayoutId: customReportLayoutId ?? this.customReportLayoutId,
      isSummary: isSummary ?? this.isSummary,
      includeSubHeadingsAndSubTotals: includeSubHeadingsAndSubTotals ??
          this.includeSubHeadingsAndSubTotals,
      includeIdColumns: includeIdColumns ?? this.includeIdColumns,
      locale: locale ?? this.locale,
      excelfields: excelfields ?? this.excelfields,
      reportName: reportName ?? this.reportName,
      useEmailTemplate: useEmailTemplate ?? this.useEmailTemplate);
}