JobPlacement.fromJson constructor

JobPlacement.fromJson(
  1. Map json_
)

Implementation

JobPlacement.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,
        clusterName: json_.containsKey('clusterName')
            ? json_['clusterName'] as core.String
            : null,
        clusterUuid: json_.containsKey('clusterUuid')
            ? json_['clusterUuid'] as core.String
            : null,
      );