copyWithWrapped method

ProductStatus copyWithWrapped({
  1. Wrapped<ProductStatusStatus>? status,
  2. Wrapped<DateTime>? lastStatusChange,
  3. Wrapped<ProductStatusBreakdown>? breakdown,
})

Implementation

ProductStatus copyWithWrapped(
    {Wrapped<enums.ProductStatusStatus>? status,
    Wrapped<DateTime>? lastStatusChange,
    Wrapped<ProductStatusBreakdown>? breakdown}) {
  return ProductStatus(
      status: (status != null ? status.value : this.status),
      lastStatusChange: (lastStatusChange != null
          ? lastStatusChange.value
          : this.lastStatusChange),
      breakdown: (breakdown != null ? breakdown.value : this.breakdown));
}