We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27a432c commit d46ededCopy full SHA for d46eded
packages/dynamite/dynamite/lib/src/type_result/base.dart
@@ -34,6 +34,8 @@ class TypeResultBase extends TypeResult {
34
return '($object as String)';
35
case 'int':
36
return 'int.parse($object as String)';
37
+ case 'bool':
38
+ return "($object as String == 'true' || $object as String == '1')";
39
case 'JsonObject':
40
return 'JsonObject($object)';
41
default:
0 commit comments