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