Node.fromJson constructor

Node.fromJson(
  1. Map json_
)

Implementation

Node.fromJson(core.Map json_)
    : this(
        acceleratorConfig: json_.containsKey('acceleratorConfig')
            ? AcceleratorConfig.fromJson(json_['acceleratorConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        acceleratorType: json_.containsKey('acceleratorType')
            ? json_['acceleratorType'] as core.String
            : null,
        apiVersion: json_.containsKey('apiVersion')
            ? json_['apiVersion'] as core.String
            : null,
        cidrBlock: json_.containsKey('cidrBlock')
            ? json_['cidrBlock'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        dataDisks: json_.containsKey('dataDisks')
            ? (json_['dataDisks'] as core.List)
                .map((value) => AttachedDisk.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        health: json_.containsKey('health')
            ? json_['health'] as core.String
            : null,
        healthDescription: json_.containsKey('healthDescription')
            ? json_['healthDescription'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] 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,
        metadata: json_.containsKey('metadata')
            ? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        multisliceNode: json_.containsKey('multisliceNode')
            ? json_['multisliceNode'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        networkConfig: json_.containsKey('networkConfig')
            ? NetworkConfig.fromJson(
                json_['networkConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        networkEndpoints: json_.containsKey('networkEndpoints')
            ? (json_['networkEndpoints'] as core.List)
                .map((value) => NetworkEndpoint.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        queuedResource: json_.containsKey('queuedResource')
            ? json_['queuedResource'] as core.String
            : null,
        runtimeVersion: json_.containsKey('runtimeVersion')
            ? json_['runtimeVersion'] as core.String
            : null,
        schedulingConfig: json_.containsKey('schedulingConfig')
            ? SchedulingConfig.fromJson(json_['schedulingConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? ServiceAccount.fromJson(json_['serviceAccount']
                as core.Map<core.String, core.dynamic>)
            : null,
        shieldedInstanceConfig: json_.containsKey('shieldedInstanceConfig')
            ? ShieldedInstanceConfig.fromJson(json_['shieldedInstanceConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        symptoms: json_.containsKey('symptoms')
            ? (json_['symptoms'] as core.List)
                .map((value) => Symptom.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tags: json_.containsKey('tags')
            ? (json_['tags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );