GkeNodeConfig.fromJson constructor

GkeNodeConfig.fromJson(
  1. Map json_
)

Implementation

GkeNodeConfig.fromJson(core.Map json_)
    : this(
        accelerators: json_.containsKey('accelerators')
            ? (json_['accelerators'] as core.List)
                .map((value) => GkeNodePoolAcceleratorConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        bootDiskKmsKey: json_.containsKey('bootDiskKmsKey')
            ? json_['bootDiskKmsKey'] as core.String
            : null,
        localSsdCount: json_.containsKey('localSsdCount')
            ? json_['localSsdCount'] as core.int
            : null,
        machineType: json_.containsKey('machineType')
            ? json_['machineType'] as core.String
            : null,
        minCpuPlatform: json_.containsKey('minCpuPlatform')
            ? json_['minCpuPlatform'] as core.String
            : null,
        preemptible: json_.containsKey('preemptible')
            ? json_['preemptible'] as core.bool
            : null,
        spot: json_.containsKey('spot') ? json_['spot'] as core.bool : null,
      );