OverallVolume.fromJson constructor

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

Implementation

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