Network.fromJson constructor

Network.fromJson(
  1. Map json_
)

Implementation

Network.fromJson(core.Map json_)
    : this(
        forwardedPorts: json_.containsKey('forwardedPorts')
            ? (json_['forwardedPorts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        instanceIpMode: json_.containsKey('instanceIpMode')
            ? json_['instanceIpMode'] as core.String
            : null,
        instanceTag: json_.containsKey('instanceTag')
            ? json_['instanceTag'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sessionAffinity: json_.containsKey('sessionAffinity')
            ? json_['sessionAffinity'] as core.bool
            : null,
        subnetworkName: json_.containsKey('subnetworkName')
            ? json_['subnetworkName'] as core.String
            : null,
      );