DiscoveryEndpoint.fromJson constructor

DiscoveryEndpoint.fromJson(
  1. Map json_
)

Implementation

DiscoveryEndpoint.fromJson(core.Map json_)
    : this(
        address: json_.containsKey('address')
            ? json_['address'] as core.String
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        pscConfig: json_.containsKey('pscConfig')
            ? PscConfig.fromJson(
                json_['pscConfig'] as core.Map<core.String, core.dynamic>)
            : null,
      );