ManagedCluster.fromJson constructor

ManagedCluster.fromJson(
  1. Map json_
)

Implementation

ManagedCluster.fromJson(core.Map json_)
    : this(
        clusterName: json_.containsKey('clusterName')
            ? json_['clusterName'] as core.String
            : null,
        config: json_.containsKey('config')
            ? ClusterConfig.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );