platform-common-utilities/packages/json_serializer/example/main.dart
2021-09-16 11:23:05 +08:00

18 lines
281 B
Dart

import 'package:belatuk_json_serializer/belatuk_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")));
}