GoogleCloudAiplatformV1MachineSpec.fromJson constructor

GoogleCloudAiplatformV1MachineSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1MachineSpec.fromJson(core.Map json_)
    : this(
        acceleratorCount: json_.containsKey('acceleratorCount')
            ? json_['acceleratorCount'] as core.int
            : null,
        acceleratorType: json_.containsKey('acceleratorType')
            ? json_['acceleratorType'] as core.String
            : null,
        machineType: json_.containsKey('machineType')
            ? json_['machineType'] as core.String
            : null,
        tpuTopology: json_.containsKey('tpuTopology')
            ? json_['tpuTopology'] as core.String
            : null,
      );