Transformer that generates simple serialization code for Dart struct-type objects