Commit 1fc7c68
committed
fix(api): add explicit cast in ResponseHelper toJsonT closure
Corrects a type error in the `data/index.dart` route handler where the
`toJsonT` closure passed to `ResponseHelper.success` was returning a
`dynamic` type instead of the required `Map<String, dynamic>`.
This change adds an explicit cast to `Map<String, dynamic>` on the
result of the inner `toJson()` call, satisfying the Dart type checker
and ensuring type safety.1 parent 7f1a38b commit 1fc7c68
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
212 | | - | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
0 commit comments