Node.fromJson constructor

Node.fromJson(
  1. Map json_
)

Implementation

Node.fromJson(core.Map json_)
    : this(
        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,
        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,
        ipAddress: json_.containsKey('ipAddress')
            ? json_['ipAddress'] 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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        networkEndpoints: json_.containsKey('networkEndpoints')
            ? (json_['networkEndpoints'] as core.List)
                .map((value) => NetworkEndpoint.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.String : null,
        schedulingConfig: json_.containsKey('schedulingConfig')
            ? SchedulingConfig.fromJson(json_['schedulingConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : 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,
        tensorflowVersion: json_.containsKey('tensorflowVersion')
            ? json_['tensorflowVersion'] as core.String
            : null,
        useServiceNetworking: json_.containsKey('useServiceNetworking')
            ? json_['useServiceNetworking'] as core.bool
            : null,
      );