Update enum.mustache (#5793)

https://github.com/OpenAPITools/openapi-generator/issues/5792
This commit is contained in:
https://gitlab.com/selankon
2020-04-11 09:15:14 -05:00
committed by GitHub
parent e9d35c5a2a
commit 07cb6529b3

View File

@@ -13,7 +13,7 @@ class {{classname}} {
{{/enumVars}}
{{/allowableValues}}
static {{classname}} fromJson(String value) {
static {{classname}} fromJson({{dataType}} value) {
return new {{classname}}TypeTransformer().decode(value);
}
}