import 'proto.dart' as proto; proto.Message messageFromJson(Map j) => proto.Message.create()..mergeFromJsonMap(j); Map messageToJson(proto.Message m) => m.writeToJsonMap(); proto.ReconciledMessage reconciledMessageFromJson(Map j) => proto.ReconciledMessage.create()..mergeFromJsonMap(j); Map reconciledMessageToJson(proto.ReconciledMessage m) => m.writeToJsonMap();