Commit 4d482816 authored by Wouter's avatar Wouter

Support boolean wrapper initializers

parent e3a7675e
......@@ -27,8 +27,10 @@
return {{ class.fullName }}(value.toFloat());
{% case "string" %}
return {{ class.fullName }}(value.toString());
{% case "boolean" %}
return {{ class.fullName }}(value.toBool());
{% default %}
// Unsupported wrapped type initializer {{ field.type.type.sourceType }}!
// Unsupported wrapped type initializer {{ class.sourceType }}!
{% endswitch %}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment