TargetPool.fromJson constructor

TargetPool.fromJson(
  1. Map json_
)

Implementation

TargetPool.fromJson(core.Map json_)
    : this(
        backupPool: json_.containsKey('backupPool')
            ? json_['backupPool'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        failoverRatio: json_.containsKey('failoverRatio')
            ? (json_['failoverRatio'] as core.num).toDouble()
            : null,
        healthChecks: json_.containsKey('healthChecks')
            ? (json_['healthChecks'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        instances: json_.containsKey('instances')
            ? (json_['instances'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        securityPolicy: json_.containsKey('securityPolicy')
            ? json_['securityPolicy'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        sessionAffinity: json_.containsKey('sessionAffinity')
            ? json_['sessionAffinity'] as core.String
            : null,
      );