toMinimalCompactJson method
Converts the message to a minimal compact JSON map.
Implementation
Map<String, dynamic> toMinimalCompactJson() {
try {
final Map<String, dynamic> data = {};
data["from"] = from;
data["body"] = {
"i": initiator.toMinimalCompactJson(),
"c": context.toMinimalCompactJson(),
};
return data;
} catch (e) {
rethrow;
}
}