copyWith method

LongreadVideoPlatformMaterialItem copyWith({
  1. LongreadMaterialDiscriminator? discriminator,
  2. PublicationState? state,
  3. LongreadMaterialViewType? viewType,
  4. LongreadMaterialType? type,
  5. int? id,
  6. int? order,
  7. String? name,
  8. String? description,
  9. String? videoId,
  10. XRePropertyIncompleteOnlyEmptyArrayObserved? timecodes,
  11. String? publishDate,
  12. VideoPlatformState? videoState,
  13. String? url,
})

Implementation

LongreadVideoPlatformMaterialItem copyWith({
  enums.LongreadMaterialDiscriminator? discriminator,
  enums.PublicationState? state,
  enums.LongreadMaterialViewType? viewType,
  enums.LongreadMaterialType? type,
  int? id,
  int? order,
  String? name,
  String? description,
  String? videoId,
  XRePropertyIncompleteOnlyEmptyArrayObserved? timecodes,
  String? publishDate,
  enums.VideoPlatformState? videoState,
  String? url,
}) {
  return LongreadVideoPlatformMaterialItem(
    discriminator: discriminator ?? this.discriminator,
    state: state ?? this.state,
    viewType: viewType ?? this.viewType,
    type: type ?? this.type,
    id: id ?? this.id,
    order: order ?? this.order,
    name: name ?? this.name,
    description: description ?? this.description,
    videoId: videoId ?? this.videoId,
    timecodes: timecodes ?? this.timecodes,
    publishDate: publishDate ?? this.publishDate,
    videoState: videoState ?? this.videoState,
    url: url ?? this.url,
  );
}