DailyVolume.fromJson constructor

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

Implementation

factory DailyVolume.fromJson(Map<String, dynamic> json) {
  return DailyVolume(
    domainIspPlacements: (json['DomainIspPlacements'] as List?)
        ?.whereNotNull()
        .map((e) => DomainIspPlacement.fromJson(e as Map<String, dynamic>))
        .toList(),
    startDate: timeStampFromJson(json['StartDate']),
    volumeStatistics: json['VolumeStatistics'] != null
        ? VolumeStatistics.fromJson(
            json['VolumeStatistics'] as Map<String, dynamic>)
        : null,
  );
}