toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '5f2d1df2',
'\$name': 'PremiumSubscriptionOption',
'flags': flags,
'current': current,
'canPurchaseUpgrade': canPurchaseUpgrade,
'transaction': transaction,
'months': months,
'currency': currency,
'amount': amount,
'botUrl': botUrl,
'storeProduct': storeProduct,
};
// Finished toJson.
return returnValue;
}