PlacementPolicy.fromJson constructor

PlacementPolicy.fromJson(
  1. Map json_
)

Implementation

PlacementPolicy.fromJson(core.Map json_)
    : this(
        policyName: json_.containsKey('policyName')
            ? json_['policyName'] as core.String
            : null,
        tpuTopology: json_.containsKey('tpuTopology')
            ? json_['tpuTopology'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );