AcceleratorConfig.fromJson constructor

AcceleratorConfig.fromJson(
  1. Map json_
)

Implementation

AcceleratorConfig.fromJson(core.Map json_)
    : this(
        acceleratorCount: json_.containsKey('acceleratorCount')
            ? json_['acceleratorCount'] as core.String
            : null,
        acceleratorType: json_.containsKey('acceleratorType')
            ? json_['acceleratorType'] as core.String
            : null,
        gpuDriverInstallationConfig:
            json_.containsKey('gpuDriverInstallationConfig')
                ? GPUDriverInstallationConfig.fromJson(
                    json_['gpuDriverInstallationConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        gpuPartitionSize: json_.containsKey('gpuPartitionSize')
            ? json_['gpuPartitionSize'] as core.String
            : null,
        gpuSharingConfig: json_.containsKey('gpuSharingConfig')
            ? GPUSharingConfig.fromJson(json_['gpuSharingConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
      );