VmwareAdminCluster.fromJson constructor

VmwareAdminCluster.fromJson(
  1. Map json_
)

Implementation

VmwareAdminCluster.fromJson(core.Map json_)
    : this(
        addonNode: json_.containsKey('addonNode')
            ? VmwareAdminAddonNodeConfig.fromJson(
                json_['addonNode'] as core.Map<core.String, core.dynamic>)
            : 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')
            ? VmwareAdminAuthorizationConfig.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,
        bootstrapClusterMembership:
            json_.containsKey('bootstrapClusterMembership')
                ? json_['bootstrapClusterMembership'] as core.String
                : null,
        controlPlaneNode: json_.containsKey('controlPlaneNode')
            ? VmwareAdminControlPlaneNodeConfig.fromJson(
                json_['controlPlaneNode']
                    as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] 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,
        imageType: json_.containsKey('imageType')
            ? json_['imageType'] as core.String
            : null,
        loadBalancer: json_.containsKey('loadBalancer')
            ? VmwareAdminLoadBalancerConfig.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')
            ? VmwareAdminNetworkConfig.fromJson(
                json_['networkConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        onPremVersion: json_.containsKey('onPremVersion')
            ? json_['onPremVersion'] as core.String
            : null,
        platformConfig: json_.containsKey('platformConfig')
            ? VmwarePlatformConfig.fromJson(json_['platformConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        preparedSecrets: json_.containsKey('preparedSecrets')
            ? VmwareAdminPreparedSecretsConfig.fromJson(
                json_['preparedSecrets']
                    as core.Map<core.String, core.dynamic>)
            : 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,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        vcenter: json_.containsKey('vcenter')
            ? VmwareAdminVCenterConfig.fromJson(
                json_['vcenter'] as core.Map<core.String, core.dynamic>)
            : null,
      );