ComputeEngineShapeDescriptor.fromJson constructor

ComputeEngineShapeDescriptor.fromJson(
  1. Map json_
)

Implementation

ComputeEngineShapeDescriptor.fromJson(core.Map json_)
    : this(
        logicalCoreCount: json_.containsKey('logicalCoreCount')
            ? json_['logicalCoreCount'] as core.int
            : null,
        machineType: json_.containsKey('machineType')
            ? json_['machineType'] as core.String
            : null,
        memoryMb: json_.containsKey('memoryMb')
            ? json_['memoryMb'] as core.int
            : null,
        physicalCoreCount: json_.containsKey('physicalCoreCount')
            ? json_['physicalCoreCount'] as core.int
            : null,
        series: json_.containsKey('series')
            ? json_['series'] as core.String
            : null,
        storage: json_.containsKey('storage')
            ? (json_['storage'] as core.List)
                .map((value) => ComputeStorageDescriptor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );