Connection.fromJson constructor

Connection.fromJson(
  1. Map json_
)

Implementation

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