copyWithWrapped method

LongreadSummaryByIdResponse copyWithWrapped({
  1. Wrapped<int>? id,
  2. Wrapped<LongreadType>? type,
  3. Wrapped<String>? name,
  4. Wrapped<int>? order,
  5. Wrapped<PublicationState>? state,
  6. Wrapped<String?>? publishDate,
  7. Wrapped<String?>? publishedAt,
})

Implementation

LongreadSummaryByIdResponse copyWithWrapped({
  Wrapped<int>? id,
  Wrapped<enums.LongreadType>? type,
  Wrapped<String>? name,
  Wrapped<int>? order,
  Wrapped<enums.PublicationState>? state,
  Wrapped<String?>? publishDate,
  Wrapped<String?>? publishedAt,
}) {
  return LongreadSummaryByIdResponse(
    id: (id != null ? id.value : this.id),
    type: (type != null ? type.value : this.type),
    name: (name != null ? name.value : this.name),
    order: (order != null ? order.value : this.order),
    state: (state != null ? state.value : this.state),
    publishDate: (publishDate != null ? publishDate.value : this.publishDate),
    publishedAt: (publishedAt != null ? publishedAt.value : this.publishedAt),
  );
}