copyWith method

WebApiModulesSettingsLaborSettingsPositionPosition copyWith({
  1. String? positionId,
  2. String? categoryId,
  3. String? laborTypeId,
  4. String? laborType,
  5. String? rateType,
  6. bool? includeAsProfitAndLossCategory,
  7. bool? includeInCost,
  8. double? averageCost,
  9. double? price,
  10. double? hourlyRate,
  11. double? dailyRate,
  12. double? weeklyRate,
  13. double? monthlyRate,
  14. double? hourlyCost,
  15. double? dailyCost,
  16. double? weeklyCost,
  17. double? monthlyCost,
  18. bool? lockMarkup,
  19. bool? taxable,
  20. String? classification,
  21. String? iCode,
  22. String? description,
  23. String? availFor,
  24. String? category,
  25. int? subCategoryCount,
  26. String? subCategoryId,
  27. String? subCategory,
  28. String? classificationDescription,
  29. String? classificationColor,
  30. String? unitId,
  31. String? unit,
  32. String? unitType,
  33. bool? nonDiscountable,
  34. bool? overrideProfitAndLossCategory,
  35. String? profitAndLossCategoryId,
  36. String? profitAndLossCategory,
  37. bool? autoCopyNotesToQuoteOrder,
  38. String? note,
  39. bool? printNoteOnInContract,
  40. bool? printNoteOnOutContract,
  41. bool? printNoteOnReceiveContract,
  42. bool? printNoteOnReturnContract,
  43. bool? printNoteOnInvoice,
  44. bool? printNoteOnOrder,
  45. bool? printNoteOnPickList,
  46. bool? printNoteOnPO,
  47. bool? printNoteOnQuote,
  48. bool? printNoteOnReturnList,
  49. bool? printNoteOnPoReceiveList,
  50. bool? printNoteOnPoReturnList,
  51. String? assetAccountId,
  52. String? assetAccountNo,
  53. String? assetAccountDescription,
  54. String? incomeAccountId,
  55. String? incomeAccountNo,
  56. String? incomeAccountDescription,
  57. String? subIncomeAccountId,
  58. String? subIncomeAccountNo,
  59. String? subIncomeAccountDescription,
  60. String? consignmentIncomeAccountId,
  61. String? consignmentIncomeAccountNo,
  62. String? consignmentIncomeAccountDescription,
  63. String? ldIncomeAccountId,
  64. String? ldIncomeAccountNo,
  65. String? ldIncomeAccountDescription,
  66. String? equipmentSaleIncomeAccountId,
  67. String? equipmentSaleIncomeAccountNo,
  68. String? equipmentSaleIncomeAccountDescription,
  69. String? expenseAccountId,
  70. String? expenseAccountNo,
  71. String? expenseAccountDescription,
  72. String? costOfGoodsSoldExpenseAccountId,
  73. String? costOfGoodsSoldExpenseAccountNo,
  74. String? costOfGoodsSoldExpenseAccountDescription,
  75. String? costOfGoodsRentedExpenseAccountId,
  76. String? costOfGoodsRentedExpenseAccountNo,
  77. String? costOfGoodsRentedExpenseAccountDescription,
  78. String? depreciationExpenseAccountId,
  79. String? depreciationExpenseAccountNo,
  80. String? depreciationExpenseAccountDescription,
  81. String? accumulatedDepreciationExpenseAccountId,
  82. String? accumulatedDepreciationExpenseAccountNo,
  83. String? accumulatedDepreciationExpenseAccountDescription,
  84. String? inputDate,
  85. String? inputByUsersId,
  86. String? category2,
  87. String? class2,
  88. String? stockClass,
  89. String? webTitle,
  90. bool? inactive,
  91. String? dateStamp,
  92. bool? manifestShippingContainer,
  93. bool? manifestStandAloneItem,
  94. bool? taxableForMyLocation,
  95. String? myLocationId,
  96. bool? taxableForAllLocations,
  97. String? auditNote,
  98. String? recordTitle,
  99. dynamic urlIdentifier,
  100. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  101. List<FwStandardDataFwCustomValue>? custom,
  102. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  103. FwStandardBusinessLogicFwBusinessLogic? original,
  104. List<FwStandardDataFwTranslatedValue>? translation,
  105. bool? hasImport,
  106. String? createdByUserId,
  107. String? createdByUserName,
  108. String? createdDateTime,
  109. String? modifiedByUserId,
  110. String? modifiedByUserName,
  111. String? modifiedDateTime,
})

Implementation

WebApiModulesSettingsLaborSettingsPositionPosition copyWith({
  String? positionId,
  String? categoryId,
  String? laborTypeId,
  String? laborType,
  String? rateType,
  bool? includeAsProfitAndLossCategory,
  bool? includeInCost,
  double? averageCost,
  double? price,
  double? hourlyRate,
  double? dailyRate,
  double? weeklyRate,
  double? monthlyRate,
  double? hourlyCost,
  double? dailyCost,
  double? weeklyCost,
  double? monthlyCost,
  bool? lockMarkup,
  bool? taxable,
  String? classification,
  String? iCode,
  String? description,
  String? availFor,
  String? category,
  int? subCategoryCount,
  String? subCategoryId,
  String? subCategory,
  String? classificationDescription,
  String? classificationColor,
  String? unitId,
  String? unit,
  String? unitType,
  bool? nonDiscountable,
  bool? overrideProfitAndLossCategory,
  String? profitAndLossCategoryId,
  String? profitAndLossCategory,
  bool? autoCopyNotesToQuoteOrder,
  String? note,
  bool? printNoteOnInContract,
  bool? printNoteOnOutContract,
  bool? printNoteOnReceiveContract,
  bool? printNoteOnReturnContract,
  bool? printNoteOnInvoice,
  bool? printNoteOnOrder,
  bool? printNoteOnPickList,
  bool? printNoteOnPO,
  bool? printNoteOnQuote,
  bool? printNoteOnReturnList,
  bool? printNoteOnPoReceiveList,
  bool? printNoteOnPoReturnList,
  String? assetAccountId,
  String? assetAccountNo,
  String? assetAccountDescription,
  String? incomeAccountId,
  String? incomeAccountNo,
  String? incomeAccountDescription,
  String? subIncomeAccountId,
  String? subIncomeAccountNo,
  String? subIncomeAccountDescription,
  String? consignmentIncomeAccountId,
  String? consignmentIncomeAccountNo,
  String? consignmentIncomeAccountDescription,
  String? ldIncomeAccountId,
  String? ldIncomeAccountNo,
  String? ldIncomeAccountDescription,
  String? equipmentSaleIncomeAccountId,
  String? equipmentSaleIncomeAccountNo,
  String? equipmentSaleIncomeAccountDescription,
  String? expenseAccountId,
  String? expenseAccountNo,
  String? expenseAccountDescription,
  String? costOfGoodsSoldExpenseAccountId,
  String? costOfGoodsSoldExpenseAccountNo,
  String? costOfGoodsSoldExpenseAccountDescription,
  String? costOfGoodsRentedExpenseAccountId,
  String? costOfGoodsRentedExpenseAccountNo,
  String? costOfGoodsRentedExpenseAccountDescription,
  String? depreciationExpenseAccountId,
  String? depreciationExpenseAccountNo,
  String? depreciationExpenseAccountDescription,
  String? accumulatedDepreciationExpenseAccountId,
  String? accumulatedDepreciationExpenseAccountNo,
  String? accumulatedDepreciationExpenseAccountDescription,
  String? inputDate,
  String? inputByUsersId,
  String? category2,
  String? class2,
  String? stockClass,
  String? webTitle,
  bool? inactive,
  String? dateStamp,
  bool? manifestShippingContainer,
  bool? manifestStandAloneItem,
  bool? taxableForMyLocation,
  String? myLocationId,
  bool? taxableForAllLocations,
  String? auditNote,
  String? recordTitle,
  dynamic urlIdentifier,
  List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  List<FwStandardDataFwCustomValue>? custom,
  List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  FwStandardBusinessLogicFwBusinessLogic? original,
  List<FwStandardDataFwTranslatedValue>? translation,
  bool? hasImport,
  String? createdByUserId,
  String? createdByUserName,
  String? createdDateTime,
  String? modifiedByUserId,
  String? modifiedByUserName,
  String? modifiedDateTime,
}) {
  return WebApiModulesSettingsLaborSettingsPositionPosition(
    positionId: positionId ?? this.positionId,
    categoryId: categoryId ?? this.categoryId,
    laborTypeId: laborTypeId ?? this.laborTypeId,
    laborType: laborType ?? this.laborType,
    rateType: rateType ?? this.rateType,
    includeAsProfitAndLossCategory:
        includeAsProfitAndLossCategory ?? this.includeAsProfitAndLossCategory,
    includeInCost: includeInCost ?? this.includeInCost,
    averageCost: averageCost ?? this.averageCost,
    price: price ?? this.price,
    hourlyRate: hourlyRate ?? this.hourlyRate,
    dailyRate: dailyRate ?? this.dailyRate,
    weeklyRate: weeklyRate ?? this.weeklyRate,
    monthlyRate: monthlyRate ?? this.monthlyRate,
    hourlyCost: hourlyCost ?? this.hourlyCost,
    dailyCost: dailyCost ?? this.dailyCost,
    weeklyCost: weeklyCost ?? this.weeklyCost,
    monthlyCost: monthlyCost ?? this.monthlyCost,
    lockMarkup: lockMarkup ?? this.lockMarkup,
    taxable: taxable ?? this.taxable,
    classification: classification ?? this.classification,
    iCode: iCode ?? this.iCode,
    description: description ?? this.description,
    availFor: availFor ?? this.availFor,
    category: category ?? this.category,
    subCategoryCount: subCategoryCount ?? this.subCategoryCount,
    subCategoryId: subCategoryId ?? this.subCategoryId,
    subCategory: subCategory ?? this.subCategory,
    classificationDescription:
        classificationDescription ?? this.classificationDescription,
    classificationColor: classificationColor ?? this.classificationColor,
    unitId: unitId ?? this.unitId,
    unit: unit ?? this.unit,
    unitType: unitType ?? this.unitType,
    nonDiscountable: nonDiscountable ?? this.nonDiscountable,
    overrideProfitAndLossCategory:
        overrideProfitAndLossCategory ?? this.overrideProfitAndLossCategory,
    profitAndLossCategoryId:
        profitAndLossCategoryId ?? this.profitAndLossCategoryId,
    profitAndLossCategory:
        profitAndLossCategory ?? this.profitAndLossCategory,
    autoCopyNotesToQuoteOrder:
        autoCopyNotesToQuoteOrder ?? this.autoCopyNotesToQuoteOrder,
    note: note ?? this.note,
    printNoteOnInContract:
        printNoteOnInContract ?? this.printNoteOnInContract,
    printNoteOnOutContract:
        printNoteOnOutContract ?? this.printNoteOnOutContract,
    printNoteOnReceiveContract:
        printNoteOnReceiveContract ?? this.printNoteOnReceiveContract,
    printNoteOnReturnContract:
        printNoteOnReturnContract ?? this.printNoteOnReturnContract,
    printNoteOnInvoice: printNoteOnInvoice ?? this.printNoteOnInvoice,
    printNoteOnOrder: printNoteOnOrder ?? this.printNoteOnOrder,
    printNoteOnPickList: printNoteOnPickList ?? this.printNoteOnPickList,
    printNoteOnPO: printNoteOnPO ?? this.printNoteOnPO,
    printNoteOnQuote: printNoteOnQuote ?? this.printNoteOnQuote,
    printNoteOnReturnList:
        printNoteOnReturnList ?? this.printNoteOnReturnList,
    printNoteOnPoReceiveList:
        printNoteOnPoReceiveList ?? this.printNoteOnPoReceiveList,
    printNoteOnPoReturnList:
        printNoteOnPoReturnList ?? this.printNoteOnPoReturnList,
    assetAccountId: assetAccountId ?? this.assetAccountId,
    assetAccountNo: assetAccountNo ?? this.assetAccountNo,
    assetAccountDescription:
        assetAccountDescription ?? this.assetAccountDescription,
    incomeAccountId: incomeAccountId ?? this.incomeAccountId,
    incomeAccountNo: incomeAccountNo ?? this.incomeAccountNo,
    incomeAccountDescription:
        incomeAccountDescription ?? this.incomeAccountDescription,
    subIncomeAccountId: subIncomeAccountId ?? this.subIncomeAccountId,
    subIncomeAccountNo: subIncomeAccountNo ?? this.subIncomeAccountNo,
    subIncomeAccountDescription:
        subIncomeAccountDescription ?? this.subIncomeAccountDescription,
    consignmentIncomeAccountId:
        consignmentIncomeAccountId ?? this.consignmentIncomeAccountId,
    consignmentIncomeAccountNo:
        consignmentIncomeAccountNo ?? this.consignmentIncomeAccountNo,
    consignmentIncomeAccountDescription:
        consignmentIncomeAccountDescription ??
        this.consignmentIncomeAccountDescription,
    ldIncomeAccountId: ldIncomeAccountId ?? this.ldIncomeAccountId,
    ldIncomeAccountNo: ldIncomeAccountNo ?? this.ldIncomeAccountNo,
    ldIncomeAccountDescription:
        ldIncomeAccountDescription ?? this.ldIncomeAccountDescription,
    equipmentSaleIncomeAccountId:
        equipmentSaleIncomeAccountId ?? this.equipmentSaleIncomeAccountId,
    equipmentSaleIncomeAccountNo:
        equipmentSaleIncomeAccountNo ?? this.equipmentSaleIncomeAccountNo,
    equipmentSaleIncomeAccountDescription:
        equipmentSaleIncomeAccountDescription ??
        this.equipmentSaleIncomeAccountDescription,
    expenseAccountId: expenseAccountId ?? this.expenseAccountId,
    expenseAccountNo: expenseAccountNo ?? this.expenseAccountNo,
    expenseAccountDescription:
        expenseAccountDescription ?? this.expenseAccountDescription,
    costOfGoodsSoldExpenseAccountId:
        costOfGoodsSoldExpenseAccountId ??
        this.costOfGoodsSoldExpenseAccountId,
    costOfGoodsSoldExpenseAccountNo:
        costOfGoodsSoldExpenseAccountNo ??
        this.costOfGoodsSoldExpenseAccountNo,
    costOfGoodsSoldExpenseAccountDescription:
        costOfGoodsSoldExpenseAccountDescription ??
        this.costOfGoodsSoldExpenseAccountDescription,
    costOfGoodsRentedExpenseAccountId:
        costOfGoodsRentedExpenseAccountId ??
        this.costOfGoodsRentedExpenseAccountId,
    costOfGoodsRentedExpenseAccountNo:
        costOfGoodsRentedExpenseAccountNo ??
        this.costOfGoodsRentedExpenseAccountNo,
    costOfGoodsRentedExpenseAccountDescription:
        costOfGoodsRentedExpenseAccountDescription ??
        this.costOfGoodsRentedExpenseAccountDescription,
    depreciationExpenseAccountId:
        depreciationExpenseAccountId ?? this.depreciationExpenseAccountId,
    depreciationExpenseAccountNo:
        depreciationExpenseAccountNo ?? this.depreciationExpenseAccountNo,
    depreciationExpenseAccountDescription:
        depreciationExpenseAccountDescription ??
        this.depreciationExpenseAccountDescription,
    accumulatedDepreciationExpenseAccountId:
        accumulatedDepreciationExpenseAccountId ??
        this.accumulatedDepreciationExpenseAccountId,
    accumulatedDepreciationExpenseAccountNo:
        accumulatedDepreciationExpenseAccountNo ??
        this.accumulatedDepreciationExpenseAccountNo,
    accumulatedDepreciationExpenseAccountDescription:
        accumulatedDepreciationExpenseAccountDescription ??
        this.accumulatedDepreciationExpenseAccountDescription,
    inputDate: inputDate ?? this.inputDate,
    inputByUsersId: inputByUsersId ?? this.inputByUsersId,
    category2: category2 ?? this.category2,
    class2: class2 ?? this.class2,
    stockClass: stockClass ?? this.stockClass,
    webTitle: webTitle ?? this.webTitle,
    inactive: inactive ?? this.inactive,
    dateStamp: dateStamp ?? this.dateStamp,
    manifestShippingContainer:
        manifestShippingContainer ?? this.manifestShippingContainer,
    manifestStandAloneItem:
        manifestStandAloneItem ?? this.manifestStandAloneItem,
    taxableForMyLocation: taxableForMyLocation ?? this.taxableForMyLocation,
    myLocationId: myLocationId ?? this.myLocationId,
    taxableForAllLocations:
        taxableForAllLocations ?? this.taxableForAllLocations,
    auditNote: auditNote ?? this.auditNote,
    recordTitle: recordTitle ?? this.recordTitle,
    urlIdentifier: urlIdentifier ?? this.urlIdentifier,
    fields: fields ?? this.fields,
    custom: custom ?? this.custom,
    defaultFieldAttributes:
        defaultFieldAttributes ?? this.defaultFieldAttributes,
    original: original ?? this.original,
    translation: translation ?? this.translation,
    hasImport: hasImport ?? this.hasImport,
    createdByUserId: createdByUserId ?? this.createdByUserId,
    createdByUserName: createdByUserName ?? this.createdByUserName,
    createdDateTime: createdDateTime ?? this.createdDateTime,
    modifiedByUserId: modifiedByUserId ?? this.modifiedByUserId,
    modifiedByUserName: modifiedByUserName ?? this.modifiedByUserName,
    modifiedDateTime: modifiedDateTime ?? this.modifiedDateTime,
  );
}