copyWith method

WebApiModulesInventoryInventoryReceiptCredits copyWith({
  1. int? inventoryReceiptCreditId,
  2. String? inventoryReceiptId,
  3. String? inventoryId,
  4. String? iCode,
  5. String? description,
  6. int? quantity,
  7. double? rate,
  8. String? unit,
  9. double? extended,
  10. String? dateStamp,
  11. String? auditNote,
  12. String? recordTitle,
  13. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  14. List<FwStandardDataFwCustomValue>? custom,
  15. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  16. List<FwStandardDataFwTranslatedValue>? translation,
})

Implementation

WebApiModulesInventoryInventoryReceiptCredits copyWith(
    {int? inventoryReceiptCreditId,
    String? inventoryReceiptId,
    String? inventoryId,
    String? iCode,
    String? description,
    int? quantity,
    double? rate,
    String? unit,
    double? extended,
    String? dateStamp,
    String? auditNote,
    String? recordTitle,
    List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
    List<FwStandardDataFwCustomValue>? custom,
    List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
    List<FwStandardDataFwTranslatedValue>? translation}) {
  return WebApiModulesInventoryInventoryReceiptCredits(
      inventoryReceiptCreditId:
          inventoryReceiptCreditId ?? this.inventoryReceiptCreditId,
      inventoryReceiptId: inventoryReceiptId ?? this.inventoryReceiptId,
      inventoryId: inventoryId ?? this.inventoryId,
      iCode: iCode ?? this.iCode,
      description: description ?? this.description,
      quantity: quantity ?? this.quantity,
      rate: rate ?? this.rate,
      unit: unit ?? this.unit,
      extended: extended ?? this.extended,
      dateStamp: dateStamp ?? this.dateStamp,
      auditNote: auditNote ?? this.auditNote,
      recordTitle: recordTitle ?? this.recordTitle,
      fields: fields ?? this.fields,
      custom: custom ?? this.custom,
      defaultFieldAttributes:
          defaultFieldAttributes ?? this.defaultFieldAttributes,
      translation: translation ?? this.translation);
}