From 68af1ff442335ad346fd881694717edcba8411de Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Wed, 20 Jul 2022 21:40:44 +0000 Subject: [PATCH] Finish implementation of Type and Enum --- examples/Dart/Test.dart | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/Dart/Test.dart diff --git a/examples/Dart/Test.dart b/examples/Dart/Test.dart new file mode 100644 index 0000000..8029caf --- /dev/null +++ b/examples/Dart/Test.dart @@ -0,0 +1,14 @@ +import "./out/Test.dart"; +import "./out/TestAtom.dart"; +import "./out/TestEnum.dart"; +import "dart:convert"; + +int main() { + var t = new TestAtom(10, false, "hello"); + print(jsonEncode(t)); + + var t2 = TestEnum.VAL2; + print(jsonEncode(t2)); + + return 0; +}