Skip to content

Instantly share code, notes, and snippets.

@Ahmedgadein
Created March 21, 2022 11:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Ahmedgadein/f2d460ab6042769378697a67b25b0398 to your computer and use it in GitHub Desktop.
Save Ahmedgadein/f2d460ab6042769378697a67b25b0398 to your computer and use it in GitHub Desktop.
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