GceClusterConfig.fromJson constructor
GceClusterConfig.fromJson(
- Map json_
Implementation
GceClusterConfig.fromJson(core.Map json_)
: this(
confidentialInstanceConfig:
json_.containsKey('confidentialInstanceConfig')
? ConfidentialInstanceConfig.fromJson(
json_['confidentialInstanceConfig']
as core.Map<core.String, core.dynamic>)
: null,
internalIpOnly: json_.containsKey('internalIpOnly')
? json_['internalIpOnly'] as core.bool
: null,
metadata: json_.containsKey('metadata')
? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
networkUri: json_.containsKey('networkUri')
? json_['networkUri'] as core.String
: null,
nodeGroupAffinity: json_.containsKey('nodeGroupAffinity')
? NodeGroupAffinity.fromJson(json_['nodeGroupAffinity']
as core.Map<core.String, core.dynamic>)
: null,
privateIpv6GoogleAccess: json_.containsKey('privateIpv6GoogleAccess')
? json_['privateIpv6GoogleAccess'] as core.String
: null,
reservationAffinity: json_.containsKey('reservationAffinity')
? ReservationAffinity.fromJson(json_['reservationAffinity']
as core.Map<core.String, core.dynamic>)
: null,
serviceAccount: json_.containsKey('serviceAccount')
? json_['serviceAccount'] as core.String
: null,
serviceAccountScopes: json_.containsKey('serviceAccountScopes')
? (json_['serviceAccountScopes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
shieldedInstanceConfig: json_.containsKey('shieldedInstanceConfig')
? ShieldedInstanceConfig.fromJson(json_['shieldedInstanceConfig']
as core.Map<core.String, core.dynamic>)
: null,
subnetworkUri: json_.containsKey('subnetworkUri')
? json_['subnetworkUri'] as core.String
: null,
tags: json_.containsKey('tags')
? (json_['tags'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
zoneUri: json_.containsKey('zoneUri')
? json_['zoneUri'] as core.String
: null,
);