Skip to content

Commit 45a3764

Browse files
authored
[dart][dart-dio] Fix missing byte response cast (#8985)
There doesn't seem to be an example.
1 parent 9ab3463 commit 45a3764

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/openapi-generator/src/main/resources/dart-dio

modules/openapi-generator/src/main/resources/dart-dio/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class {{classname}} {
108108
{{#returnType}}
109109

110110
{{#isResponseFile}}
111-
final {{{returnType}}} _responseData = _response.data;
111+
final {{{returnType}}} _responseData = _response.data as {{{returnType}}};
112112
{{/isResponseFile}}
113113
{{^isResponseFile}}
114114
{{#returnSimpleType}}

0 commit comments

Comments
 (0)