copyWith method
LongreadVideoPlatformMaterialItem
copyWith({
- LongreadMaterialDiscriminator? discriminator,
- PublicationState? state,
- LongreadMaterialViewType? viewType,
- LongreadMaterialType? type,
- int? id,
- int? order,
- String? name,
- String? description,
- String? videoId,
- XRePropertyIncompleteOnlyEmptyArrayObserved? timecodes,
- String? publishDate,
- VideoPlatformState? videoState,
- 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,
);
}