Node.fromJson constructor
Node.fromJson(
- Map _json
Implementation
Node.fromJson(core.Map _json)
: this(
acceleratorType: _json.containsKey('acceleratorType')
? _json['acceleratorType'] as core.String
: null,
apiVersion: _json.containsKey('apiVersion')
? _json['apiVersion'] as core.String
: null,
cidrBlock: _json.containsKey('cidrBlock')
? _json['cidrBlock'] as core.String
: null,
createTime: _json.containsKey('createTime')
? _json['createTime'] as core.String
: null,
dataDisks: _json.containsKey('dataDisks')
? (_json['dataDisks'] as core.List)
.map((value) => AttachedDisk.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
description: _json.containsKey('description')
? _json['description'] as core.String
: null,
health: _json.containsKey('health')
? _json['health'] as core.String
: null,
healthDescription: _json.containsKey('healthDescription')
? _json['healthDescription'] as core.String
: null,
id: _json.containsKey('id') ? _json['id'] as core.String : null,
labels: _json.containsKey('labels')
? (_json['labels'] as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
metadata: _json.containsKey('metadata')
? (_json['metadata'] as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
name: _json.containsKey('name') ? _json['name'] as core.String : null,
networkConfig: _json.containsKey('networkConfig')
? NetworkConfig.fromJson(
_json['networkConfig'] as core.Map<core.String, core.dynamic>)
: null,
networkEndpoints: _json.containsKey('networkEndpoints')
? (_json['networkEndpoints'] as core.List)
.map((value) => NetworkEndpoint.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
runtimeVersion: _json.containsKey('runtimeVersion')
? _json['runtimeVersion'] as core.String
: null,
schedulingConfig: _json.containsKey('schedulingConfig')
? SchedulingConfig.fromJson(_json['schedulingConfig']
as core.Map<core.String, core.dynamic>)
: null,
serviceAccount: _json.containsKey('serviceAccount')
? ServiceAccount.fromJson(_json['serviceAccount']
as core.Map<core.String, core.dynamic>)
: null,
state:
_json.containsKey('state') ? _json['state'] as core.String : null,
symptoms: _json.containsKey('symptoms')
? (_json['symptoms'] as core.List)
.map((value) => Symptom.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
tags: _json.containsKey('tags')
? (_json['tags'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);