VmwareCluster.fromJson constructor

VmwareCluster.fromJson(
  1. Map json_
)

Implementation

VmwareCluster.fromJson(core.Map json_)
    : this(
        adminClusterMembership: json_.containsKey('adminClusterMembership')
            ? json_['adminClusterMembership'] as core.String
            : null,
        adminClusterName: json_.containsKey('adminClusterName')
            ? json_['adminClusterName'] as core.String
            : null,
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        antiAffinityGroups: json_.containsKey('antiAffinityGroups')
            ? VmwareAAGConfig.fromJson(json_['antiAffinityGroups']
                as core.Map<core.String, core.dynamic>)
            : null,
        authorization: json_.containsKey('authorization')
            ? Authorization.fromJson(
                json_['authorization'] as core.Map<core.String, core.dynamic>)
            : null,
        autoRepairConfig: json_.containsKey('autoRepairConfig')
            ? VmwareAutoRepairConfig.fromJson(json_['autoRepairConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        binaryAuthorization: json_.containsKey('binaryAuthorization')
            ? BinaryAuthorization.fromJson(json_['binaryAuthorization']
                as core.Map<core.String, core.dynamic>)
            : null,
        controlPlaneNode: json_.containsKey('controlPlaneNode')
            ? VmwareControlPlaneNodeConfig.fromJson(json_['controlPlaneNode']
                as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        dataplaneV2: json_.containsKey('dataplaneV2')
            ? VmwareDataplaneV2Config.fromJson(
                json_['dataplaneV2'] as core.Map<core.String, core.dynamic>)
            : null,
        deleteTime: json_.containsKey('deleteTime')
            ? json_['deleteTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        disableBundledIngress: json_.containsKey('disableBundledIngress')
            ? json_['disableBundledIngress'] as core.bool
            : null,
        enableControlPlaneV2: json_.containsKey('enableControlPlaneV2')
            ? json_['enableControlPlaneV2'] as core.bool
            : 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')
            ? VmwareLoadBalancerConfig.fromJson(
                json_['loadBalancer'] as core.Map<core.String, core.dynamic>)
            : null,
        localName: json_.containsKey('localName')
            ? json_['localName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        networkConfig: json_.containsKey('networkConfig')
            ? VmwareNetworkConfig.fromJson(
                json_['networkConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        onPremVersion: json_.containsKey('onPremVersion')
            ? json_['onPremVersion'] as core.String
            : null,
        reconciling: json_.containsKey('reconciling')
            ? json_['reconciling'] as core.bool
            : 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')
            ? VmwareStorageConfig.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,
        upgradePolicy: json_.containsKey('upgradePolicy')
            ? VmwareClusterUpgradePolicy.fromJson(
                json_['upgradePolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        validationCheck: json_.containsKey('validationCheck')
            ? ValidationCheck.fromJson(json_['validationCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        vcenter: json_.containsKey('vcenter')
            ? VmwareVCenterConfig.fromJson(
                json_['vcenter'] as core.Map<core.String, core.dynamic>)
            : null,
        vmTrackingEnabled: json_.containsKey('vmTrackingEnabled')
            ? json_['vmTrackingEnabled'] as core.bool
            : null,
      );