Seal
Seal
@ViktorIngemarsson Hey. What's the imports
@ViktorIngemarsson sorry, we can't determine if it is root class when code only inside the `Extension` class currently
@ViktorIngemarsson in this case, I think we need to refactor the current code logic for more accesses
@hanshengjian Yes, The correct generated class should like this: ```kotlin data class `package`( val `class`: String = "zha" // zha ) ```
ok
@occultus73 Hi, Can you show some examples or demos?
@occultus73 Got it,But maybe null is a real object in future API response, Then May JSONObject can't cast to String, And It will broken in program,right?
@occultus73 It's easy to achieve your goal, Just create an [Extension](https://github.com/wuseal/JsonToKotlinClass/blob/master/doc_for_extensions.md) for the plugin is OK. Change Type `Any` to `String` when [Property#originJSONValue](https://github.com/wuseal/JsonToKotlinClass/blob/8edda826d818b34d28dc77c806b5b21e297daed7/src/main/kotlin/wu/seal/jsontokotlin/model/classscodestruct/Property.kt#L7) is `null`
@occultus73 Haha, Welcome to create a pull request for this, It's also an acceptable option to replace Any with String when json value is nul
@everyline 嗨,什么意思,可以的话请麻烦把问题说明具体些 ,如果可以举例说明那更好