dynacode 1.0.2 dynacode: ^1.0.2 copied to clipboard
A serialization library for converting dynamic, structured data (JSON, YAML) into Dart types.
import 'package:dynacode/dynacode.dart';
class Person extends Coding {
String name;
@override
void decode(KeyedArchive object) {
// must call super
super.decode(object);
name = object.decode("name");
}
@override
void encode(KeyedArchive object) {
object.encode("name", name);
}
}