GoogleCloudMlV1ReplicaConfig.fromJson constructor

GoogleCloudMlV1ReplicaConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1ReplicaConfig.fromJson(core.Map json_)
    : this(
        acceleratorConfig: json_.containsKey('acceleratorConfig')
            ? GoogleCloudMlV1AcceleratorConfig.fromJson(
                json_['acceleratorConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        containerArgs: json_.containsKey('containerArgs')
            ? (json_['containerArgs'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        containerCommand: json_.containsKey('containerCommand')
            ? (json_['containerCommand'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        diskConfig: json_.containsKey('diskConfig')
            ? GoogleCloudMlV1DiskConfig.fromJson(
                json_['diskConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        imageUri: json_.containsKey('imageUri')
            ? json_['imageUri'] as core.String
            : null,
        tpuTfVersion: json_.containsKey('tpuTfVersion')
            ? json_['tpuTfVersion'] as core.String
            : null,
      );