Autoscaler.fromJson constructor
Autoscaler.fromJson(
- Map json_
Implementation
Autoscaler.fromJson(core.Map json_)
: this(
autoscalingPolicy: json_.containsKey('autoscalingPolicy')
? AutoscalingPolicy.fromJson(json_['autoscalingPolicy']
as core.Map<core.String, core.dynamic>)
: null,
creationTimestamp: json_.containsKey('creationTimestamp')
? json_['creationTimestamp'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
recommendedSize: json_.containsKey('recommendedSize')
? json_['recommendedSize'] as core.int
: null,
region: json_.containsKey('region')
? json_['region'] as core.String
: null,
scalingScheduleStatus: json_.containsKey('scalingScheduleStatus')
? (json_['scalingScheduleStatus']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
ScalingScheduleStatus.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
statusDetails: json_.containsKey('statusDetails')
? (json_['statusDetails'] as core.List)
.map((value) => AutoscalerStatusDetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
target: json_.containsKey('target')
? json_['target'] as core.String
: null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);