DiscoveredService.fromJson constructor

DiscoveredService.fromJson(
  1. Map json_
)

Implementation

DiscoveredService.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        serviceProperties: json_.containsKey('serviceProperties')
            ? ServiceProperties.fromJson(json_['serviceProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        serviceReference: json_.containsKey('serviceReference')
            ? ServiceReference.fromJson(json_['serviceReference']
                as core.Map<core.String, core.dynamic>)
            : null,
      );