gregschlom
12/15/2016, 7:42 PM/*
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") {
}