AssetPerformanceData.fromJson constructor

AssetPerformanceData.fromJson(
  1. Map json_
)

Implementation

AssetPerformanceData.fromJson(core.Map json_)
    : this(
        dailyResourceUsageAggregations:
            json_.containsKey('dailyResourceUsageAggregations')
                ? (json_['dailyResourceUsageAggregations'] as core.List)
                    .map((value) => DailyResourceUsageAggregation.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
      );