copyWithWrapped method

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

Implementation

WebApiModulesAgentOrderOrderDocumentPutRequest copyWithWrapped({
  Wrapped<String?>? orderId,
  Wrapped<String?>? documentId,
  Wrapped<String?>? documentTypeId,
  Wrapped<String?>? description,
  Wrapped<bool?>? attachToEmail,
  Wrapped<bool?>? inactive,
  Wrapped<bool?>? fileIsModified,
  Wrapped<String?>? fileDataUrl,
  Wrapped<String?>? filePath,
}) {
  return WebApiModulesAgentOrderOrderDocumentPutRequest(
    orderId: (orderId != null ? orderId.value : this.orderId),
    documentId: (documentId != null ? documentId.value : this.documentId),
    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),
  );
}