platform/common/json_serializer/example/main.dart

18 lines
274 B
Dart

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