NodeGroup.fromJson constructor
NodeGroup.fromJson(
- Map json_
Implementation
NodeGroup.fromJson(core.Map json_)
: this(
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,
nodeGroupConfig: json_.containsKey('nodeGroupConfig')
? InstanceGroupConfig.fromJson(json_['nodeGroupConfig']
as core.Map<core.String, core.dynamic>)
: null,
roles: json_.containsKey('roles')
? (json_['roles'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);