InstanceConsumptionInfo.fromJson constructor

InstanceConsumptionInfo.fromJson(
  1. Map json_
)

Implementation

InstanceConsumptionInfo.fromJson(core.Map json_)
    : this(
        guestCpus: json_.containsKey('guestCpus')
            ? json_['guestCpus'] as core.int
            : null,
        localSsdGb: json_.containsKey('localSsdGb')
            ? json_['localSsdGb'] as core.int
            : null,
        memoryMb: json_.containsKey('memoryMb')
            ? json_['memoryMb'] as core.int
            : null,
        minNodeCpus: json_.containsKey('minNodeCpus')
            ? json_['minNodeCpus'] as core.int
            : null,
      );