toJson method
Implementation
Map<String, dynamic> toJson() {
final daily = this.daily;
final maximumDuration = this.maximumDuration;
final messagesPerSecond = this.messagesPerSecond;
final total = this.total;
return {
if (daily != null) 'Daily': daily,
if (maximumDuration != null) 'MaximumDuration': maximumDuration,
if (messagesPerSecond != null) 'MessagesPerSecond': messagesPerSecond,
if (total != null) 'Total': total,
};
}