ClusterSelector.fromJson constructor

ClusterSelector.fromJson(
  1. Map json_
)

Implementation

ClusterSelector.fromJson(core.Map json_)
    : this(
        clusterLabels: json_.containsKey('clusterLabels')
            ? (json_['clusterLabels'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );