GoogleCloudAiplatformV1MachineSpec.fromJson constructor

GoogleCloudAiplatformV1MachineSpec.fromJson(
  1. Map json_
)

Implementation

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