Created
March 21, 2022 11:42
-
-
Save Ahmedgadein/f2d460ab6042769378697a67b25b0398 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class User(val id: String, val name:String, val token: String){ | |
fun toJson(): Map<String, String> = mapOf { | |
"id" to id, | |
"name" to name, | |
"token" to token, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment