Instance.fromJson constructor

Instance.fromJson(
  1. Map json_
)

Implementation

Instance.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        firmwareVersion: json_.containsKey('firmwareVersion')
            ? json_['firmwareVersion'] as core.String
            : null,
        hyperthreadingEnabled: json_.containsKey('hyperthreadingEnabled')
            ? json_['hyperthreadingEnabled'] as core.bool
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        interactiveSerialConsoleEnabled:
            json_.containsKey('interactiveSerialConsoleEnabled')
                ? json_['interactiveSerialConsoleEnabled'] as core.bool
                : null,
        kmsKeyVersion: json_.containsKey('kmsKeyVersion')
            ? json_['kmsKeyVersion'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        logicalInterfaces: json_.containsKey('logicalInterfaces')
            ? (json_['logicalInterfaces'] as core.List)
                .map((value) =>
                    GoogleCloudBaremetalsolutionV2LogicalInterface.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        loginInfo: json_.containsKey('loginInfo')
            ? json_['loginInfo'] as core.String
            : null,
        luns: json_.containsKey('luns')
            ? (json_['luns'] as core.List)
                .map((value) => Lun.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        machineType: json_.containsKey('machineType')
            ? json_['machineType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        networkTemplate: json_.containsKey('networkTemplate')
            ? json_['networkTemplate'] as core.String
            : null,
        networks: json_.containsKey('networks')
            ? (json_['networks'] as core.List)
                .map((value) => Network.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        osImage: json_.containsKey('osImage')
            ? json_['osImage'] as core.String
            : null,
        pod: json_.containsKey('pod') ? json_['pod'] as core.String : null,
        sshKeys: json_.containsKey('sshKeys')
            ? (json_['sshKeys'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        volumes: json_.containsKey('volumes')
            ? (json_['volumes'] as core.List)
                .map((value) => Volume.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        workloadProfile: json_.containsKey('workloadProfile')
            ? json_['workloadProfile'] as core.String
            : null,
      );