copyWith method

Attachment copyWith({
  1. String? id,
  2. String? status,
  3. String? title,
  4. DateTime? createdAt,
  5. dynamic pageId,
  6. dynamic blogPostId,
  7. dynamic customContentId,
  8. String? mediaType,
  9. String? mediaTypeDescription,
  10. String? comment,
  11. String? fileId,
  12. int? fileSize,
  13. String? webuiLink,
  14. String? downloadLink,
  15. Version? version,
  16. 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,
  );
}