DailyResourceUsageAggregation.fromJson constructor

DailyResourceUsageAggregation.fromJson(
  1. Map json_
)

Implementation

DailyResourceUsageAggregation.fromJson(core.Map json_)
    : this(
        cpu: json_.containsKey('cpu')
            ? DailyResourceUsageAggregationCPU.fromJson(
                json_['cpu'] as core.Map<core.String, core.dynamic>)
            : null,
        date: json_.containsKey('date')
            ? Date.fromJson(
                json_['date'] as core.Map<core.String, core.dynamic>)
            : null,
        disk: json_.containsKey('disk')
            ? DailyResourceUsageAggregationDisk.fromJson(
                json_['disk'] as core.Map<core.String, core.dynamic>)
            : null,
        memory: json_.containsKey('memory')
            ? DailyResourceUsageAggregationMemory.fromJson(
                json_['memory'] as core.Map<core.String, core.dynamic>)
            : null,
        network: json_.containsKey('network')
            ? DailyResourceUsageAggregationNetwork.fromJson(
                json_['network'] as core.Map<core.String, core.dynamic>)
            : null,
      );