NodeType.fromJson constructor

NodeType.fromJson(
  1. Map json_
)

Implementation

NodeType.fromJson(core.Map json_)
    : this(
        cpuPlatform: json_.containsKey('cpuPlatform')
            ? json_['cpuPlatform'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        deprecated: json_.containsKey('deprecated')
            ? DeprecationStatus.fromJson(
                json_['deprecated'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        guestCpus: json_.containsKey('guestCpus')
            ? json_['guestCpus'] as core.int
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        localSsdGb: json_.containsKey('localSsdGb')
            ? json_['localSsdGb'] as core.int
            : null,
        memoryMb: json_.containsKey('memoryMb')
            ? json_['memoryMb'] as core.int
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );