toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0xc83d6aec",
"flags": flags,
"currency": currency,
"amount": amount,
"months": months,
"cryptoCurrency": cryptoCurrency,
"cryptoAmount": cryptoAmount,
};
// Finished toJson.
return returnValue;
}