Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkkkkkkkkkkkkeee committed Jan 13, 2020
1 parent 79a0698 commit b0c2507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kotlin_version=1.3.61
pluginVersion=3.3.0
pluginVersion=3.3.1
#每次修改这里去打包
ideaVersionPrefix=193
ideaVersion=
2 changes: 1 addition & 1 deletion src/main/java/com/ruiyu/jsontodart/ClassGeneratorInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class HelperClassGeneratorInfo {
"if (json['$getJsonName'] != null) {\n\t\tdata.$name = new List<${listSubType}>();\n\t\t$value\n\t}"
}
else -> // class
"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}"
}
}

Expand Down

0 comments on commit b0c2507

Please sign in to comment.