Working with json we expected json from server and we should describe models:
var title:String? = “”
var author:String? = “”
var otherParmas = “”
assume of hundreds varialbles
I don’t want to set default not null value to params, It is requere more time, code become to complicated and not nice.
I would like only to declare bean:
Why don’t Kotlin compiler set default value for general type: “” for String and 0 for Int ?
What do you think about it?