toJson method
Converts the base application data to a JSON representation.
Implementation
@override
/// Converts the base application data to a JSON representation.
Map<String, dynamic> toJson() {
return {
if (messageId != null) 'messageId': messageId,
if (timestamp != null) 'timestamp': timestamp,
};
}