toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '19a13f71',
'\$name': 'ConnectedBotStarRef',
'flags': flags,
'revoked': revoked,
'url': url,
'date': date.toIso8601String(),
'botId': botId,
'commissionPermille': commissionPermille,
'durationMonths': durationMonths,
'participants': participants,
'revenue': revenue,
};
// Finished toJson.
return returnValue;
}