Skip to content

Instantly share code, notes, and snippets.

@droid-lover
Created October 22, 2020 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save droid-lover/714318217ec750a3c1472d2c680a2aff to your computer and use it in GitHub Desktop.
Save droid-lover/714318217ec750a3c1472d2c680a2aff to your computer and use it in GitHub Desktop.
package com.vs.kotlinserialization
import kotlinx.serialization.Serializable
//we need to add this annotation
@Serializable
data class Fruit (val name:String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment