copyWithWrapped method
LongreadVideoMaterialItem
copyWithWrapped({
- Wrapped<
LongreadMaterialDiscriminator> ? discriminator, - Wrapped<
PublicationState> ? state, - Wrapped<
LongreadMaterialViewType> ? viewType, - Wrapped<
LongreadMaterialType> ? type, - Wrapped<
int> ? id, - Wrapped<
int> ? order, - Wrapped<
FileMediaType> ? mediaType, - Wrapped<
String> ? filename, - Wrapped<
String?> ? version, - Wrapped<
int> ? length, - Wrapped<
String?> ? publishDate, - Wrapped<
String?> ? publishedAt, - Wrapped<
LongreadMaterialContent> ? content,
Implementation
LongreadVideoMaterialItem copyWithWrapped({
Wrapped<enums.LongreadMaterialDiscriminator>? discriminator,
Wrapped<enums.PublicationState>? state,
Wrapped<enums.LongreadMaterialViewType>? viewType,
Wrapped<enums.LongreadMaterialType>? type,
Wrapped<int>? id,
Wrapped<int>? order,
Wrapped<enums.FileMediaType>? mediaType,
Wrapped<String>? filename,
Wrapped<String?>? version,
Wrapped<int>? length,
Wrapped<String?>? publishDate,
Wrapped<String?>? publishedAt,
Wrapped<LongreadMaterialContent>? content,
}) {
return LongreadVideoMaterialItem(
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),
mediaType: (mediaType != null ? mediaType.value : this.mediaType),
filename: (filename != null ? filename.value : this.filename),
version: (version != null ? version.value : this.version),
length: (length != null ? length.value : this.length),
publishDate: (publishDate != null ? publishDate.value : this.publishDate),
publishedAt: (publishedAt != null ? publishedAt.value : this.publishedAt),
content: (content != null ? content.value : this.content),
);
}