copyWithWrapped method

WebApiModulesIntegrationsStorefrontSendInquiryEmailRequest copyWithWrapped({
  1. Wrapped<String>? catalogProductId,
  2. Wrapped<String>? warehouseId,
  3. Wrapped<String>? locationId,
  4. Wrapped<String>? firstName,
  5. Wrapped<String>? lastName,
  6. Wrapped<String>? phone,
  7. Wrapped<String>? email,
  8. Wrapped<String>? message,
})

Implementation

WebApiModulesIntegrationsStorefrontSendInquiryEmailRequest copyWithWrapped({
  Wrapped<String>? catalogProductId,
  Wrapped<String>? warehouseId,
  Wrapped<String>? locationId,
  Wrapped<String>? firstName,
  Wrapped<String>? lastName,
  Wrapped<String>? phone,
  Wrapped<String>? email,
  Wrapped<String>? message,
}) {
  return WebApiModulesIntegrationsStorefrontSendInquiryEmailRequest(
    catalogProductId: (catalogProductId != null
        ? catalogProductId.value
        : this.catalogProductId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
    locationId: (locationId != null ? locationId.value : this.locationId),
    firstName: (firstName != null ? firstName.value : this.firstName),
    lastName: (lastName != null ? lastName.value : this.lastName),
    phone: (phone != null ? phone.value : this.phone),
    email: (email != null ? email.value : this.email),
    message: (message != null ? message.value : this.message),
  );
}