GkeClusterConfig.fromJson constructor

GkeClusterConfig.fromJson(
  1. Map json_
)

Implementation

GkeClusterConfig.fromJson(core.Map json_)
    : this(
        gkeClusterTarget: json_.containsKey('gkeClusterTarget')
            ? json_['gkeClusterTarget'] as core.String
            : null,
        namespacedGkeDeploymentTarget:
            json_.containsKey('namespacedGkeDeploymentTarget')
                ? NamespacedGkeDeploymentTarget.fromJson(
                    json_['namespacedGkeDeploymentTarget']
                        as core.Map<core.String, core.dynamic>)
                : null,
        nodePoolTarget: json_.containsKey('nodePoolTarget')
            ? (json_['nodePoolTarget'] as core.List)
                .map((value) => GkeNodePoolTarget.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );