copyWith method

WebApiModulesInventoryInventoryConsignorInventoryConsignor copyWith({
  1. String? consignorId,
  2. String? consignorAgreementId,
  3. String? consignor,
  4. String? agreementNumber,
  5. String? agreementDescription,
  6. String? inventoryId,
  7. String? iCode,
  8. String? description,
  9. String? trackedBy,
  10. bool? treatConsignedQtyAsOwned,
  11. int? qtyConsigned,
  12. int? consignorPercent,
  13. int? housePercent,
  14. bool? flatRate,
  15. double? flatRateAmount,
  16. String? itemId,
  17. String? barCode,
  18. String? serialNumber,
  19. String? inventoryStatusId,
  20. String? inventoryStatus,
  21. String? inventoryStatusType,
  22. String? warehouseId,
  23. String? warehouse,
  24. String? warehouseCode,
  25. String? textColor,
  26. String? color,
  27. String? auditNote,
  28. String? recordTitle,
  29. dynamic urlIdentifier,
  30. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  31. List<FwStandardDataFwCustomValue>? custom,
  32. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  33. FwStandardBusinessLogicFwBusinessLogic? original,
  34. List<FwStandardDataFwTranslatedValue>? translation,
  35. bool? hasImport,
  36. bool? hasDocuments,
  37. String? createdByUserId,
  38. String? createdByUserName,
  39. String? createdDateTime,
  40. String? modifiedByUserId,
  41. String? modifiedByUserName,
  42. String? modifiedDateTime,
})

Implementation

WebApiModulesInventoryInventoryConsignorInventoryConsignor copyWith({
  String? consignorId,
  String? consignorAgreementId,
  String? consignor,
  String? agreementNumber,
  String? agreementDescription,
  String? inventoryId,
  String? iCode,
  String? description,
  String? trackedBy,
  bool? treatConsignedQtyAsOwned,
  int? qtyConsigned,
  int? consignorPercent,
  int? housePercent,
  bool? flatRate,
  double? flatRateAmount,
  String? itemId,
  String? barCode,
  String? serialNumber,
  String? inventoryStatusId,
  String? inventoryStatus,
  String? inventoryStatusType,
  String? warehouseId,
  String? warehouse,
  String? warehouseCode,
  String? textColor,
  String? color,
  String? auditNote,
  String? recordTitle,
  dynamic urlIdentifier,
  List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  List<FwStandardDataFwCustomValue>? custom,
  List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  FwStandardBusinessLogicFwBusinessLogic? original,
  List<FwStandardDataFwTranslatedValue>? translation,
  bool? hasImport,
  bool? hasDocuments,
  String? createdByUserId,
  String? createdByUserName,
  String? createdDateTime,
  String? modifiedByUserId,
  String? modifiedByUserName,
  String? modifiedDateTime,
}) {
  return WebApiModulesInventoryInventoryConsignorInventoryConsignor(
    consignorId: consignorId ?? this.consignorId,
    consignorAgreementId: consignorAgreementId ?? this.consignorAgreementId,
    consignor: consignor ?? this.consignor,
    agreementNumber: agreementNumber ?? this.agreementNumber,
    agreementDescription: agreementDescription ?? this.agreementDescription,
    inventoryId: inventoryId ?? this.inventoryId,
    iCode: iCode ?? this.iCode,
    description: description ?? this.description,
    trackedBy: trackedBy ?? this.trackedBy,
    treatConsignedQtyAsOwned:
        treatConsignedQtyAsOwned ?? this.treatConsignedQtyAsOwned,
    qtyConsigned: qtyConsigned ?? this.qtyConsigned,
    consignorPercent: consignorPercent ?? this.consignorPercent,
    housePercent: housePercent ?? this.housePercent,
    flatRate: flatRate ?? this.flatRate,
    flatRateAmount: flatRateAmount ?? this.flatRateAmount,
    itemId: itemId ?? this.itemId,
    barCode: barCode ?? this.barCode,
    serialNumber: serialNumber ?? this.serialNumber,
    inventoryStatusId: inventoryStatusId ?? this.inventoryStatusId,
    inventoryStatus: inventoryStatus ?? this.inventoryStatus,
    inventoryStatusType: inventoryStatusType ?? this.inventoryStatusType,
    warehouseId: warehouseId ?? this.warehouseId,
    warehouse: warehouse ?? this.warehouse,
    warehouseCode: warehouseCode ?? this.warehouseCode,
    textColor: textColor ?? this.textColor,
    color: color ?? this.color,
    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,
    hasDocuments: hasDocuments ?? this.hasDocuments,
    createdByUserId: createdByUserId ?? this.createdByUserId,
    createdByUserName: createdByUserName ?? this.createdByUserName,
    createdDateTime: createdDateTime ?? this.createdDateTime,
    modifiedByUserId: modifiedByUserId ?? this.modifiedByUserId,
    modifiedByUserName: modifiedByUserName ?? this.modifiedByUserName,
    modifiedDateTime: modifiedDateTime ?? this.modifiedDateTime,
  );
}