|
|
@ -792,8 +792,10 @@ class OpenAPIBuilder implements Builder { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (headersType != null && dataType != null) { |
|
|
|
if (headersType != null && dataType != null) { |
|
|
|
b.returns = refer('Future<Response<$dataType, $headersType>>'); |
|
|
|
b.returns = refer('Future<${prefix}Response<$dataType, $headersType>>'); |
|
|
|
code.write('return Response<$dataType, $headersType>($dataValue, $headersValue,);'); |
|
|
|
code.write( |
|
|
|
|
|
|
|
'return ${prefix}Response<$dataType, $headersType>($dataValue, $headersValue,);', |
|
|
|
|
|
|
|
); |
|
|
|
} else if (headersType != null) { |
|
|
|
} else if (headersType != null) { |
|
|
|
b.returns = refer('Future<$headersType>'); |
|
|
|
b.returns = refer('Future<$headersType>'); |
|
|
|
code.write('return $headersValue;'); |
|
|
|
code.write('return $headersValue;'); |
|
|
|