copyWith method

WebApiModulesReportsBillingProfitLossReportProfitLossReportRequest copyWith({
  1. DateTime? fromDate,
  2. DateTime? toDate,
  3. String? dateField,
  4. String? officeLocationId,
  5. String? departmentId,
  6. String? agentId,
  7. String? customerId,
  8. String? dealId,
  9. String? orderId,
  10. List<FwStandardModelsSelectedCheckBoxListItem>? statuses,
  11. String? userDepartmentId,
  12. String? userLocationId,
  13. String? userWarehouseId,
  14. String? customReportLayoutId,
  15. bool? isSummary,
  16. bool? includeSubHeadingsAndSubTotals,
  17. bool? includeIdColumns,
  18. String? locale,
  19. List<FwStandardModelsCheckBoxListItem>? excelfields,
  20. String? reportName,
  21. bool? useEmailTemplate,
})

Implementation

WebApiModulesReportsBillingProfitLossReportProfitLossReportRequest copyWith(
    {DateTime? fromDate,
    DateTime? toDate,
    String? dateField,
    String? officeLocationId,
    String? departmentId,
    String? agentId,
    String? customerId,
    String? dealId,
    String? orderId,
    List<FwStandardModelsSelectedCheckBoxListItem>? statuses,
    String? userDepartmentId,
    String? userLocationId,
    String? userWarehouseId,
    String? customReportLayoutId,
    bool? isSummary,
    bool? includeSubHeadingsAndSubTotals,
    bool? includeIdColumns,
    String? locale,
    List<FwStandardModelsCheckBoxListItem>? excelfields,
    String? reportName,
    bool? useEmailTemplate}) {
  return WebApiModulesReportsBillingProfitLossReportProfitLossReportRequest(
      fromDate: fromDate ?? this.fromDate,
      toDate: toDate ?? this.toDate,
      dateField: dateField ?? this.dateField,
      officeLocationId: officeLocationId ?? this.officeLocationId,
      departmentId: departmentId ?? this.departmentId,
      agentId: agentId ?? this.agentId,
      customerId: customerId ?? this.customerId,
      dealId: dealId ?? this.dealId,
      orderId: orderId ?? this.orderId,
      statuses: statuses ?? this.statuses,
      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);
}