NatInfo.fromJson constructor

NatInfo.fromJson(
  1. Map json_
)

Implementation

NatInfo.fromJson(core.Map json_)
    : this(
        natGatewayName: json_.containsKey('natGatewayName')
            ? json_['natGatewayName'] as core.String
            : null,
        networkUri: json_.containsKey('networkUri')
            ? json_['networkUri'] as core.String
            : null,
        newDestinationIp: json_.containsKey('newDestinationIp')
            ? json_['newDestinationIp'] as core.String
            : null,
        newDestinationPort: json_.containsKey('newDestinationPort')
            ? json_['newDestinationPort'] as core.int
            : null,
        newSourceIp: json_.containsKey('newSourceIp')
            ? json_['newSourceIp'] as core.String
            : null,
        newSourcePort: json_.containsKey('newSourcePort')
            ? json_['newSourcePort'] as core.int
            : null,
        oldDestinationIp: json_.containsKey('oldDestinationIp')
            ? json_['oldDestinationIp'] as core.String
            : null,
        oldDestinationPort: json_.containsKey('oldDestinationPort')
            ? json_['oldDestinationPort'] as core.int
            : null,
        oldSourceIp: json_.containsKey('oldSourceIp')
            ? json_['oldSourceIp'] as core.String
            : null,
        oldSourcePort: json_.containsKey('oldSourcePort')
            ? json_['oldSourcePort'] as core.int
            : null,
        protocol: json_.containsKey('protocol')
            ? json_['protocol'] as core.String
            : null,
        routerUri: json_.containsKey('routerUri')
            ? json_['routerUri'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );