platform/packages/json_god/example/main.dart
2021-05-15 09:31:17 +08:00

19 lines
301 B
Dart

import 'package:angel3_json_god/angel3_json_god.dart' as god;
class A {
String foo;
A(this.foo);
}
class B {
late String hello;
late A nested;
B(String hello, String foo) {
this.hello = hello;
this.nested = A(foo);
}
}
void main() {
print(god.serialize(B("world", "bar")));
}