Instance.fromJson constructor
Instance.fromJson(
- Map json_
Implementation
Instance.fromJson(core.Map json_)
: this(
autoscalingConfig: json_.containsKey('autoscalingConfig')
? AutoscalingConfig.fromJson(json_['autoscalingConfig']
as core.Map<core.String, core.dynamic>)
: null,
config: json_.containsKey('config')
? json_['config'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
endpointUris: json_.containsKey('endpointUris')
? (json_['endpointUris'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
freeInstanceMetadata: json_.containsKey('freeInstanceMetadata')
? FreeInstanceMetadata.fromJson(json_['freeInstanceMetadata']
as core.Map<core.String, core.dynamic>)
: null,
instanceType: json_.containsKey('instanceType')
? json_['instanceType'] as core.String
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
nodeCount: json_.containsKey('nodeCount')
? json_['nodeCount'] as core.int
: null,
processingUnits: json_.containsKey('processingUnits')
? json_['processingUnits'] as core.int
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);