toggle menu
Writeopia
common
switch theme
search in API
plugin:writeopia_persistence_room
/
io.writeopia.sdk.persistence.parse
/
toModel
to
Model
fun
DocumentEntity
.
toModel
(
content
:
Map
<
Int
,
StoryStep
>
=
emptyMap()
)
:
Document
fun
StoryStepEntity
.
toModel
(
steps
:
List
<
StoryStepEntity
>
=
emptyList()
,
nameToType
:
(
String
)
->
StoryType
=
{ typeName -> StoryTypes.fromName(typeName).type }
)
:
StoryStep