copyWithWrapped method

LongreadVideoMaterialItem copyWithWrapped({
  1. Wrapped<LongreadMaterialDiscriminator>? discriminator,
  2. Wrapped<PublicationState>? state,
  3. Wrapped<LongreadMaterialViewType>? viewType,
  4. Wrapped<LongreadMaterialType>? type,
  5. Wrapped<int>? id,
  6. Wrapped<int>? order,
  7. Wrapped<FileMediaType>? mediaType,
  8. Wrapped<String>? filename,
  9. Wrapped<String?>? version,
  10. Wrapped<int>? length,
  11. Wrapped<String?>? publishDate,
  12. Wrapped<String?>? publishedAt,
  13. 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),
  );
}