Story<Content>.from constructor

Story<Content>.from(
  1. Story story
)

Implementation

factory Story.from(Story story) {
  return Story(
    name: story.name,
    createdAt: story.createdAt,
    publishedAt: story.publishedAt,
    id: story.id,
    uuid: story.uuid,
    content: story.content,
    slug: story.slug,
    fullSlug: story.fullSlug,
    sortByDate: story.sortByDate,
    position: story.position,
    tagList: story.tagList,
    isStartpage: story.isStartpage,
    parentId: story.parentId,
    metaData: story.metaData,
    groupId: story.groupId,
    firstPublishedAt: story.firstPublishedAt,
    releaseId: story.releaseId,
    language: story.language,
    path: story.path,
    alternates: story.alternates,
    defaultFullSlug: story.defaultFullSlug,
    translatedSlugs: story.translatedSlugs,
  );
}