BareMetalNodePoolConfig.fromJson constructor
BareMetalNodePoolConfig.fromJson(
- Map json_
Implementation
BareMetalNodePoolConfig.fromJson(core.Map json_)
: this(
kubeletConfig: json_.containsKey('kubeletConfig')
? BareMetalKubeletConfig.fromJson(
json_['kubeletConfig'] as core.Map<core.String, core.dynamic>)
: 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,
nodeConfigs: json_.containsKey('nodeConfigs')
? (json_['nodeConfigs'] as core.List)
.map((value) => BareMetalNodeConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
operatingSystem: json_.containsKey('operatingSystem')
? json_['operatingSystem'] as core.String
: null,
taints: json_.containsKey('taints')
? (json_['taints'] as core.List)
.map((value) => NodeTaint.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);