Created
May 27, 2017 07:07
-
-
Save akbarsha03/55fbec41da5758ea4b6a0daff6986144 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Person(var name: String? = null, var address: Address? = null, var age: Int? = null, var sex: String? = null, var lat: Double? = null, var lng: Double? = null) | |
data class Address(var streetName: String? = null, var pinCode: String? = null) | |
Person().apply { | |
name = "PERSON NAME" | |
sex = "MALE" | |
address = Address().apply { | |
streetName = "STREET NAME" | |
pinCode = "560029" | |
} | |
lat = 12.9271241 | |
lng = 77.6110964 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment