Skip to content

Commit

Permalink
[chore] #4 usermodel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook123 committed May 1, 2024
1 parent 77846d6 commit 953140e
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@ package org.sopt.main.model

import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import org.sopt.model.User

@Parcelize
data class User(
data class UserModel(
val id: String = "",
val pw: String = "",
val name: String = "",
val hobby: String = ""
): Parcelable

fun UserModel.toUser() = User(
id = id,
pw = pw,
name = name,
hobby = hobby,
autoLogin = false,
)

0 comments on commit 953140e

Please sign in to comment.