copyWithWrapped method

WebApiModulesWarehouseContractContractDocumentPostRequest copyWithWrapped({
  1. Wrapped<String?>? contractId,
  2. Wrapped<String?>? documentTypeId,
  3. Wrapped<String?>? description,
  4. Wrapped<bool?>? attachToEmail,
  5. Wrapped<bool?>? inactive,
  6. Wrapped<bool?>? fileIsModified,
  7. Wrapped<String?>? fileDataUrl,
  8. Wrapped<String?>? filePath,
})

Implementation

WebApiModulesWarehouseContractContractDocumentPostRequest copyWithWrapped(
    {Wrapped<String?>? contractId,
    Wrapped<String?>? documentTypeId,
    Wrapped<String?>? description,
    Wrapped<bool?>? attachToEmail,
    Wrapped<bool?>? inactive,
    Wrapped<bool?>? fileIsModified,
    Wrapped<String?>? fileDataUrl,
    Wrapped<String?>? filePath}) {
  return WebApiModulesWarehouseContractContractDocumentPostRequest(
      contractId: (contractId != null ? contractId.value : this.contractId),
      documentTypeId: (documentTypeId != null
          ? documentTypeId.value
          : this.documentTypeId),
      description:
          (description != null ? description.value : this.description),
      attachToEmail:
          (attachToEmail != null ? attachToEmail.value : this.attachToEmail),
      inactive: (inactive != null ? inactive.value : this.inactive),
      fileIsModified: (fileIsModified != null
          ? fileIsModified.value
          : this.fileIsModified),
      fileDataUrl:
          (fileDataUrl != null ? fileDataUrl.value : this.fileDataUrl),
      filePath: (filePath != null ? filePath.value : this.filePath));
}