TargetVpnGateway.fromJson constructor

TargetVpnGateway.fromJson(
  1. Map json_
)

Implementation

TargetVpnGateway.fromJson(core.Map json_)
    : this(
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        forwardingRules: json_.containsKey('forwardingRules')
            ? (json_['forwardingRules'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labelFingerprint: json_.containsKey('labelFingerprint')
            ? json_['labelFingerprint'] 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,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        tunnels: json_.containsKey('tunnels')
            ? (json_['tunnels'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );