Skip to content

Instantly share code, notes, and snippets.

@aleweichandt
Created August 16, 2021 18:50
Show Gist options
  • Save aleweichandt/ddaaec81ff22819134dce3389ab7d392 to your computer and use it in GitHub Desktop.
Save aleweichandt/ddaaec81ff22819134dce3389ab7d392 to your computer and use it in GitHub Desktop.
Mappings example
fun Todo.toEntity() = TodoEntity(
uuid, value, body, completed
)
fun TodoEntity.toDomain() = Todo(
value, body, completed, uuid
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment