Converts a particular message to the map representation, serializable to JSON.
Map<String, dynamic> toJson();