Commit 484317f
committed
Fix: JsonObject fields should not use replace() method with tristate_optionals
When tristate_optionals is enabled, the code generator incorrectly treats JsonObject from built_value package as a built collection that has a replace() method. However, JsonObject is a simple value type without replace() method.
This fix adds special handling for JsonObject to ensure it's treated as a simple value type, using direct assignment instead of replace() method.
Fixes gql-dart/ferry#6491 parent c9d1346 commit 484317f
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
190 | 195 | | |
191 | 196 | | |
| 197 | + | |
192 | 198 | | |
193 | 199 | | |
194 | 200 | | |
| |||
0 commit comments