AutomaticScaling.fromJson constructor

AutomaticScaling.fromJson(
  1. Map json_
)

Implementation

AutomaticScaling.fromJson(core.Map json_)
    : this(
        coolDownPeriod: json_.containsKey('coolDownPeriod')
            ? json_['coolDownPeriod'] as core.String
            : null,
        cpuUtilization: json_.containsKey('cpuUtilization')
            ? CpuUtilization.fromJson(json_['cpuUtilization']
                as core.Map<core.String, core.dynamic>)
            : null,
        diskUtilization: json_.containsKey('diskUtilization')
            ? DiskUtilization.fromJson(json_['diskUtilization']
                as core.Map<core.String, core.dynamic>)
            : null,
        maxConcurrentRequests: json_.containsKey('maxConcurrentRequests')
            ? json_['maxConcurrentRequests'] as core.int
            : null,
        maxIdleInstances: json_.containsKey('maxIdleInstances')
            ? json_['maxIdleInstances'] as core.int
            : null,
        maxPendingLatency: json_.containsKey('maxPendingLatency')
            ? json_['maxPendingLatency'] as core.String
            : null,
        maxTotalInstances: json_.containsKey('maxTotalInstances')
            ? json_['maxTotalInstances'] as core.int
            : null,
        minIdleInstances: json_.containsKey('minIdleInstances')
            ? json_['minIdleInstances'] as core.int
            : null,
        minPendingLatency: json_.containsKey('minPendingLatency')
            ? json_['minPendingLatency'] as core.String
            : null,
        minTotalInstances: json_.containsKey('minTotalInstances')
            ? json_['minTotalInstances'] as core.int
            : null,
        networkUtilization: json_.containsKey('networkUtilization')
            ? NetworkUtilization.fromJson(json_['networkUtilization']
                as core.Map<core.String, core.dynamic>)
            : null,
        requestUtilization: json_.containsKey('requestUtilization')
            ? RequestUtilization.fromJson(json_['requestUtilization']
                as core.Map<core.String, core.dynamic>)
            : null,
        standardSchedulerSettings:
            json_.containsKey('standardSchedulerSettings')
                ? StandardSchedulerSettings.fromJson(
                    json_['standardSchedulerSettings']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );