|
|
@ -34,6 +34,8 @@ class TypeResultBase extends TypeResult { |
|
|
|
return '($object as String)'; |
|
|
|
return '($object as String)'; |
|
|
|
case 'int': |
|
|
|
case 'int': |
|
|
|
return 'int.parse($object as String)'; |
|
|
|
return 'int.parse($object as String)'; |
|
|
|
|
|
|
|
case 'bool': |
|
|
|
|
|
|
|
return "($object as String == 'true')"; |
|
|
|
case 'JsonObject': |
|
|
|
case 'JsonObject': |
|
|
|
return 'JsonObject($object)'; |
|
|
|
return 'JsonObject($object)'; |
|
|
|
default: |
|
|
|
default: |
|
|
|