ResolvedBonsoirService.fromJson constructor
Creates a new resolved Bonsoir service instance from the given JSON map.
Implementation
ResolvedBonsoirService.fromJson(
Map<String, dynamic> json, {
String prefix = 'service.',
}) : this(
name: json['${prefix}name'],
type: _filterType(json['${prefix}type']),
port: json['${prefix}port'],
attributes: Map<String, String>.from(json['${prefix}attributes']),
ip: json['${prefix}ip'],
);