DailyResourceUsageAggregationStats.fromJson constructor

DailyResourceUsageAggregationStats.fromJson(
  1. Map json_
)

Implementation

DailyResourceUsageAggregationStats.fromJson(core.Map json_)
    : this(
        average: json_.containsKey('average')
            ? (json_['average'] as core.num).toDouble()
            : null,
        median: json_.containsKey('median')
            ? (json_['median'] as core.num).toDouble()
            : null,
        ninteyFifthPercentile: json_.containsKey('ninteyFifthPercentile')
            ? (json_['ninteyFifthPercentile'] as core.num).toDouble()
            : null,
        peak: json_.containsKey('peak')
            ? (json_['peak'] as core.num).toDouble()
            : null,
      );