toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final daysOfWeek = this.daysOfWeek;
  final endHourOfDay = this.endHourOfDay;
  final endMinuteOfHour = this.endMinuteOfHour;
  final startHourOfDay = this.startHourOfDay;
  final startMinuteOfHour = this.startMinuteOfHour;
  final averageDownloadRateLimitInBitsPerSec =
      this.averageDownloadRateLimitInBitsPerSec;
  final averageUploadRateLimitInBitsPerSec =
      this.averageUploadRateLimitInBitsPerSec;
  return {
    'DaysOfWeek': daysOfWeek,
    'EndHourOfDay': endHourOfDay,
    'EndMinuteOfHour': endMinuteOfHour,
    'StartHourOfDay': startHourOfDay,
    'StartMinuteOfHour': startMinuteOfHour,
    if (averageDownloadRateLimitInBitsPerSec != null)
      'AverageDownloadRateLimitInBitsPerSec':
          averageDownloadRateLimitInBitsPerSec,
    if (averageUploadRateLimitInBitsPerSec != null)
      'AverageUploadRateLimitInBitsPerSec':
          averageUploadRateLimitInBitsPerSec,
  };
}