copyWith method
Attachment
copyWith({
- String? id,
- String? status,
- String? title,
- DateTime? createdAt,
- dynamic pageId,
- dynamic blogPostId,
- dynamic customContentId,
- String? mediaType,
- String? mediaTypeDescription,
- String? comment,
- String? fileId,
- int? fileSize,
- String? webuiLink,
- String? downloadLink,
- Version? version,
- AttachmentLinks? links,
Implementation
Attachment copyWith(
{String? id,
String? status,
String? title,
DateTime? createdAt,
dynamic pageId,
dynamic blogPostId,
dynamic customContentId,
String? mediaType,
String? mediaTypeDescription,
String? comment,
String? fileId,
int? fileSize,
String? webuiLink,
String? downloadLink,
Version? version,
AttachmentLinks? links}) {
return Attachment(
id: id ?? this.id,
status: status ?? this.status,
title: title ?? this.title,
createdAt: createdAt ?? this.createdAt,
pageId: pageId ?? this.pageId,
blogPostId: blogPostId ?? this.blogPostId,
customContentId: customContentId ?? this.customContentId,
mediaType: mediaType ?? this.mediaType,
mediaTypeDescription: mediaTypeDescription ?? this.mediaTypeDescription,
comment: comment ?? this.comment,
fileId: fileId ?? this.fileId,
fileSize: fileSize ?? this.fileSize,
webuiLink: webuiLink ?? this.webuiLink,
downloadLink: downloadLink ?? this.downloadLink,
version: version ?? this.version,
links: links ?? this.links,
);
}