mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
13 lines
450 B
Dart
13 lines
450 B
Dart
|
import 'proto.dart' as proto;
|
||
|
|
||
|
proto.Message messageFromJson(Map<String, dynamic> j) =>
|
||
|
proto.Message.create()..mergeFromJsonMap(j);
|
||
|
|
||
|
Map<String, dynamic> messageToJson(proto.Message m) => m.writeToJsonMap();
|
||
|
|
||
|
proto.ReconciledMessage reconciledMessageFromJson(Map<String, dynamic> j) =>
|
||
|
proto.ReconciledMessage.create()..mergeFromJsonMap(j);
|
||
|
|
||
|
Map<String, dynamic> reconciledMessageToJson(proto.ReconciledMessage m) =>
|
||
|
m.writeToJsonMap();
|