toggle menu
Writeopia
common
switch theme
search in API
plugin:writeopia_persistence_room
/
io.writeopia.sdk.persistence.entity.document
/
DocumentEntity
Document
Entity
data
class
DocumentEntity
(
val
id
:
String
,
val
title
:
String
,
val
createdAt
:
Long
,
val
lastUpdatedAt
:
Long
,
val
userId
:
String
,
val
favorite
:
Boolean
,
val
parentId
:
String
,
val
icon
:
String
?
=
null
)
Members
Members & Extensions
Constructors
Document
Entity
Link copied to clipboard
constructor
(
id
:
String
,
title
:
String
,
createdAt
:
Long
,
lastUpdatedAt
:
Long
,
userId
:
String
,
favorite
:
Boolean
,
parentId
:
String
,
icon
:
String
?
=
null
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
created
At
Link copied to clipboard
val
createdAt
:
Long
favorite
Link copied to clipboard
val
favorite
:
Boolean
icon
Link copied to clipboard
val
icon
:
String
?
=
null
id
Link copied to clipboard
val
id
:
String
last
Updated
At
Link copied to clipboard
val
lastUpdatedAt
:
Long
parent
Id
Link copied to clipboard
val
parentId
:
String
title
Link copied to clipboard
val
title
:
String
user
Id
Link copied to clipboard
val
userId
:
String
Functions
to
Model
Link copied to clipboard
fun
DocumentEntity
.
toModel
(
content
:
Map
<
Int
,
StoryStep
>
=
emptyMap()
)
:
Document