diff --git a/modules/openapi-generator/src/main/resources/dart2/enum.mustache b/modules/openapi-generator/src/main/resources/dart2/enum.mustache index df8d8ff90352..87bbed91767f 100644 --- a/modules/openapi-generator/src/main/resources/dart2/enum.mustache +++ b/modules/openapi-generator/src/main/resources/dart2/enum.mustache @@ -13,7 +13,7 @@ class {{classname}} { {{/enumVars}} {{/allowableValues}} - static {{classname}} fromJson(String value) { + static {{classname}} fromJson({{dataType}} value) { return new {{classname}}TypeTransformer().decode(value); } }