AllocationSpecificSKUAllocationReservedInstanceProperties.fromJson constructor

AllocationSpecificSKUAllocationReservedInstanceProperties.fromJson(
  1. Map json_
)

Implementation

AllocationSpecificSKUAllocationReservedInstanceProperties.fromJson(
    core.Map json_)
    : this(
        guestAccelerators: json_.containsKey('guestAccelerators')
            ? (json_['guestAccelerators'] as core.List)
                .map((value) => AcceleratorConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        localSsds: json_.containsKey('localSsds')
            ? (json_['localSsds'] as core.List)
                .map((value) =>
                    AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        locationHint: json_.containsKey('locationHint')
            ? json_['locationHint'] as core.String
            : null,
        machineType: json_.containsKey('machineType')
            ? json_['machineType'] as core.String
            : null,
        minCpuPlatform: json_.containsKey('minCpuPlatform')
            ? json_['minCpuPlatform'] as core.String
            : null,
      );