We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a0698 commit b0c2507Copy full SHA for b0c2507
gradle.properties
@@ -1,5 +1,5 @@
1
kotlin_version=1.3.61
2
-pluginVersion=3.3.0
+pluginVersion=3.3.1
3
#每次修改这里去打包
4
ideaVersionPrefix=193
5
ideaVersion=
src/main/java/com/ruiyu/jsontodart/ClassGeneratorInfo.kt
@@ -95,7 +95,7 @@ class HelperClassGeneratorInfo {
95
"if (json['$getJsonName'] != null) {\n\t\tdata.$name = new List<${listSubType}>();\n\t\t$value\n\t}"
96
}
97
else -> // class
98
- "if (json['$getJsonName'] != null) {\n\t\tnew $type().fromJson(json['$getJsonName']);\n\t}"
+ "if (json['$getJsonName'] != null) {\n\t\tdata.$name = new $type().fromJson(json['$getJsonName']);\n\t}"
99
100
101
0 commit comments