toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0xe988037b",
"text": text,
"userId": userId,
};
// Finished toJson.
return returnValue;
}