copyWithWrapped method
LongreadMarkdownMaterialItem
copyWithWrapped({
- Wrapped<
LongreadMaterialDiscriminator> ? discriminator, - Wrapped<
PublicationState> ? state, - Wrapped<
LongreadMaterialViewType> ? viewType, - Wrapped<
LongreadMaterialType> ? type, - Wrapped<
int> ? id, - Wrapped<
int> ? order, - Wrapped<
String> ? viewContent, - Wrapped<
String?> ? publishDate, - Wrapped<
String?> ? publishedAt,
Implementation
LongreadMarkdownMaterialItem copyWithWrapped({
Wrapped<enums.LongreadMaterialDiscriminator>? discriminator,
Wrapped<enums.PublicationState>? state,
Wrapped<enums.LongreadMaterialViewType>? viewType,
Wrapped<enums.LongreadMaterialType>? type,
Wrapped<int>? id,
Wrapped<int>? order,
Wrapped<String>? viewContent,
Wrapped<String?>? publishDate,
Wrapped<String?>? publishedAt,
}) {
return LongreadMarkdownMaterialItem(
discriminator: (discriminator != null
? discriminator.value
: this.discriminator),
state: (state != null ? state.value : this.state),
viewType: (viewType != null ? viewType.value : this.viewType),
type: (type != null ? type.value : this.type),
id: (id != null ? id.value : this.id),
order: (order != null ? order.value : this.order),
viewContent: (viewContent != null ? viewContent.value : this.viewContent),
publishDate: (publishDate != null ? publishDate.value : this.publishDate),
publishedAt: (publishedAt != null ? publishedAt.value : this.publishedAt),
);
}