SocketAddress.fromJson constructor

SocketAddress.fromJson(
  1. Map json_
)

Implementation

SocketAddress.fromJson(core.Map json_)
    : this(
        address: json_.containsKey('address')
            ? json_['address'] as core.String
            : null,
        ipv4Compat: json_.containsKey('ipv4Compat')
            ? json_['ipv4Compat'] as core.bool
            : null,
        namedPort: json_.containsKey('namedPort')
            ? json_['namedPort'] as core.String
            : null,
        portValue: json_.containsKey('portValue')
            ? json_['portValue'] as core.int
            : null,
        protocol: json_.containsKey('protocol')
            ? json_['protocol'] as core.String
            : null,
        resolverName: json_.containsKey('resolverName')
            ? json_['resolverName'] as core.String
            : null,
      );