platform-common-utilities/packages/json_serializer/example/main.dart

19 lines
281 B
Dart
Raw Permalink Normal View History

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")));
}