Post.createClone constructor

Post.createClone(
  1. Post post
)

Implementation

Post.createClone(Post post)
  : id = post.id,
    ownerId = post.ownerId,
    profileName = post.profileName,
    profileImgUrl = post.profileImgUrl,
    caption = post.caption,
    type = post.type,
    mediaUrl = post.mediaUrl,
    thumbnailUrl = post.thumbnailUrl,
    externalUrl = post.externalUrl,
    createdTime = post.createdTime,
    modifiedTime = post.modifiedTime,
    position = post.position,
    location = post.location,
    likedProfiles = post.likedProfiles,
    sharedProfiles = post.sharedProfiles,
    savedByProfiles = post.savedByProfiles,
    mentionedProfiles = post.mentionedProfiles,
    commentIds = post.commentIds,
    comments = post.comments,
    hashtags = post.hashtags,
    isCommentEnabled = post.isCommentEnabled,
    isPrivate = post.isPrivate,
    isDraft = post.isDraft,
    isHidden = post.isHidden,
    verificationLevel = post.verificationLevel,
    mediaOwner = post.mediaOwner,
    referenceId = post.referenceId,
    lastInteraction = post.lastInteraction,
    aspectRatio = post.aspectRatio,
    textStyleId = post.textStyleId,
    originalPostId = post.originalPostId,
    originalOwnerId = post.originalOwnerId,
    scheduledTime = post.scheduledTime,
    isScheduled = post.isScheduled,
    isEdited = post.isEdited,
    isLive = post.isLive,
    slug = post.slug;