Skip to content

Commit b0c2507

Browse files
bugfix
1 parent 79a0698 commit b0c2507

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
kotlin_version=1.3.61
2-
pluginVersion=3.3.0
2+
pluginVersion=3.3.1
33
#每次修改这里去打包
44
ideaVersionPrefix=193
55
ideaVersion=

src/main/java/com/ruiyu/jsontodart/ClassGeneratorInfo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class HelperClassGeneratorInfo {
9595
"if (json['$getJsonName'] != null) {\n\t\tdata.$name = new List<${listSubType}>();\n\t\t$value\n\t}"
9696
}
9797
else -> // class
98-
"if (json['$getJsonName'] != null) {\n\t\tnew $type().fromJson(json['$getJsonName']);\n\t}"
98+
"if (json['$getJsonName'] != null) {\n\t\tdata.$name = new $type().fromJson(json['$getJsonName']);\n\t}"
9999
}
100100
}
101101

0 commit comments

Comments
 (0)