copyWith method

WebApiModulesInventorySalesInventorySalesInventoryDocumentPostRequest copyWith({
  1. String? inventoryId,
  2. String? documentTypeId,
  3. String? description,
  4. bool? attachToEmail,
  5. bool? inactive,
  6. bool? fileIsModified,
  7. String? fileDataUrl,
  8. String? filePath,
})

Implementation

WebApiModulesInventorySalesInventorySalesInventoryDocumentPostRequest
    copyWith(
        {String? inventoryId,
        String? documentTypeId,
        String? description,
        bool? attachToEmail,
        bool? inactive,
        bool? fileIsModified,
        String? fileDataUrl,
        String? filePath}) {
  return WebApiModulesInventorySalesInventorySalesInventoryDocumentPostRequest(
      inventoryId: inventoryId ?? this.inventoryId,
      documentTypeId: documentTypeId ?? this.documentTypeId,
      description: description ?? this.description,
      attachToEmail: attachToEmail ?? this.attachToEmail,
      inactive: inactive ?? this.inactive,
      fileIsModified: fileIsModified ?? this.fileIsModified,
      fileDataUrl: fileDataUrl ?? this.fileDataUrl,
      filePath: filePath ?? this.filePath);
}