EndpointInfo.fromJson constructor

EndpointInfo.fromJson(
  1. Map json_
)

Implementation

EndpointInfo.fromJson(core.Map json_)
    : this(
        destinationIp: json_.containsKey('destinationIp')
            ? json_['destinationIp'] as core.String
            : null,
        destinationNetworkUri: json_.containsKey('destinationNetworkUri')
            ? json_['destinationNetworkUri'] as core.String
            : null,
        destinationPort: json_.containsKey('destinationPort')
            ? json_['destinationPort'] as core.int
            : null,
        protocol: json_.containsKey('protocol')
            ? json_['protocol'] as core.String
            : null,
        sourceAgentUri: json_.containsKey('sourceAgentUri')
            ? json_['sourceAgentUri'] as core.String
            : null,
        sourceIp: json_.containsKey('sourceIp')
            ? json_['sourceIp'] as core.String
            : null,
        sourceNetworkUri: json_.containsKey('sourceNetworkUri')
            ? json_['sourceNetworkUri'] as core.String
            : null,
        sourcePort: json_.containsKey('sourcePort')
            ? json_['sourcePort'] as core.int
            : null,
      );