```/* I need to: - Have Gson deserialize th...
# kotson
g
Copy code
/*
   I need to:
    - Have Gson deserialize this, even there's no 0-arg constructor
    - Have an exception thrown if "name" is null, missing, or not a string in the JSON data
    - Have favoriteColor be "blue" if it's null or missing 
 */
class Person(
        val name: String,
        val favoriteColor: String = "blue") {
}