BareMetalAdminCluster.fromJson constructor
BareMetalAdminCluster.fromJson(
- Map json_
Implementation
BareMetalAdminCluster.fromJson(core.Map json_)
: this(
annotations: json_.containsKey('annotations')
? (json_['annotations'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
bareMetalVersion: json_.containsKey('bareMetalVersion')
? json_['bareMetalVersion'] as core.String
: null,
binaryAuthorization: json_.containsKey('binaryAuthorization')
? BinaryAuthorization.fromJson(json_['binaryAuthorization']
as core.Map<core.String, core.dynamic>)
: null,
clusterOperations: json_.containsKey('clusterOperations')
? BareMetalAdminClusterOperationsConfig.fromJson(
json_['clusterOperations']
as core.Map<core.String, core.dynamic>)
: null,
controlPlane: json_.containsKey('controlPlane')
? BareMetalAdminControlPlaneConfig.fromJson(
json_['controlPlane'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
deleteTime: json_.containsKey('deleteTime')
? json_['deleteTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
endpoint: json_.containsKey('endpoint')
? json_['endpoint'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
fleet: json_.containsKey('fleet')
? Fleet.fromJson(
json_['fleet'] as core.Map<core.String, core.dynamic>)
: null,
loadBalancer: json_.containsKey('loadBalancer')
? BareMetalAdminLoadBalancerConfig.fromJson(
json_['loadBalancer'] as core.Map<core.String, core.dynamic>)
: null,
localName: json_.containsKey('localName')
? json_['localName'] as core.String
: null,
maintenanceConfig: json_.containsKey('maintenanceConfig')
? BareMetalAdminMaintenanceConfig.fromJson(
json_['maintenanceConfig']
as core.Map<core.String, core.dynamic>)
: null,
maintenanceStatus: json_.containsKey('maintenanceStatus')
? BareMetalAdminMaintenanceStatus.fromJson(
json_['maintenanceStatus']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
networkConfig: json_.containsKey('networkConfig')
? BareMetalAdminNetworkConfig.fromJson(
json_['networkConfig'] as core.Map<core.String, core.dynamic>)
: null,
nodeAccessConfig: json_.containsKey('nodeAccessConfig')
? BareMetalAdminNodeAccessConfig.fromJson(
json_['nodeAccessConfig']
as core.Map<core.String, core.dynamic>)
: null,
nodeConfig: json_.containsKey('nodeConfig')
? BareMetalAdminWorkloadNodeConfig.fromJson(
json_['nodeConfig'] as core.Map<core.String, core.dynamic>)
: null,
osEnvironmentConfig: json_.containsKey('osEnvironmentConfig')
? BareMetalAdminOsEnvironmentConfig.fromJson(
json_['osEnvironmentConfig']
as core.Map<core.String, core.dynamic>)
: null,
proxy: json_.containsKey('proxy')
? BareMetalAdminProxyConfig.fromJson(
json_['proxy'] as core.Map<core.String, core.dynamic>)
: null,
reconciling: json_.containsKey('reconciling')
? json_['reconciling'] as core.bool
: null,
securityConfig: json_.containsKey('securityConfig')
? BareMetalAdminSecurityConfig.fromJson(json_['securityConfig']
as core.Map<core.String, core.dynamic>)
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
status: json_.containsKey('status')
? ResourceStatus.fromJson(
json_['status'] as core.Map<core.String, core.dynamic>)
: null,
storage: json_.containsKey('storage')
? BareMetalAdminStorageConfig.fromJson(
json_['storage'] as core.Map<core.String, core.dynamic>)
: null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
validationCheck: json_.containsKey('validationCheck')
? ValidationCheck.fromJson(json_['validationCheck']
as core.Map<core.String, core.dynamic>)
: null,
);