copyWithWrapped method
LongreadVideoPlatformMaterialItem
copyWithWrapped({
- Wrapped<
LongreadMaterialDiscriminator> ? discriminator, - Wrapped<
PublicationState> ? state, - Wrapped<
LongreadMaterialViewType> ? viewType, - Wrapped<
LongreadMaterialType> ? type, - Wrapped<
int> ? id, - Wrapped<
int> ? order, - Wrapped<
String> ? name, - Wrapped<
String> ? description, - Wrapped<
String> ? videoId, - Wrapped<
XRePropertyIncompleteOnlyEmptyArrayObserved> ? timecodes, - Wrapped<
String?> ? publishDate, - Wrapped<
VideoPlatformState> ? videoState, - Wrapped<
String> ? url,
Implementation
LongreadVideoPlatformMaterialItem 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>? name,
Wrapped<String>? description,
Wrapped<String>? videoId,
Wrapped<XRePropertyIncompleteOnlyEmptyArrayObserved>? timecodes,
Wrapped<String?>? publishDate,
Wrapped<enums.VideoPlatformState>? videoState,
Wrapped<String>? url,
}) {
return LongreadVideoPlatformMaterialItem(
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),
name: (name != null ? name.value : this.name),
description: (description != null ? description.value : this.description),
videoId: (videoId != null ? videoId.value : this.videoId),
timecodes: (timecodes != null ? timecodes.value : this.timecodes),
publishDate: (publishDate != null ? publishDate.value : this.publishDate),
videoState: (videoState != null ? videoState.value : this.videoState),
url: (url != null ? url.value : this.url),
);
}