BandwidthRateLimitInterval.fromJson constructor

BandwidthRateLimitInterval.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BandwidthRateLimitInterval.fromJson(Map<String, dynamic> json) {
  return BandwidthRateLimitInterval(
    daysOfWeek: (json['DaysOfWeek'] as List)
        .whereNotNull()
        .map((e) => e as int)
        .toList(),
    endHourOfDay: json['EndHourOfDay'] as int,
    endMinuteOfHour: json['EndMinuteOfHour'] as int,
    startHourOfDay: json['StartHourOfDay'] as int,
    startMinuteOfHour: json['StartMinuteOfHour'] as int,
    averageDownloadRateLimitInBitsPerSec:
        json['AverageDownloadRateLimitInBitsPerSec'] as int?,
    averageUploadRateLimitInBitsPerSec:
        json['AverageUploadRateLimitInBitsPerSec'] as int?,
  );
}