platform/packages/json_god/example/main.dart

20 lines
301 B
Dart
Raw Normal View History

2021-05-15 01:31:17 +00:00
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")));
}