Fixed missing initialization of postBody

This commit is contained in:
Yimin Lin
2018-08-28 17:18:49 +08:00
parent 37d10cf0a9
commit 35d9ccafc6

View File

@@ -13,7 +13,7 @@ class {{classname}} {
///
/// {{notes}}
{{#returnType}}Future<{{{returnType}}}> {{/returnType}}{{^returnType}}Future {{/returnType}}{{nickname}}({{#allParams}}{{#required}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/required}}{{/allParams}}{{#hasOptionalParams}}{ {{#allParams}}{{^required}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/required}}{{/allParams}} }{{/hasOptionalParams}}) async {
Object postBody;
Object postBody{{#bodyParam}} = {{paramName}}{{/bodyParam}};
// verify required params are set
{{#allParams}}