ServiceReference.fromJson constructor
Creates a ServiceReference from JSON data.
Implementation
factory ServiceReference.fromJson(Map<String, dynamic> json) {
final tempNameJson = json['name'];
final tempNamespaceJson = json['namespace'];
final tempPathJson = json['path'];
final tempPortJson = json['port'];
final String tempName = tempNameJson;
final String tempNamespace = tempNamespaceJson;
final String? tempPath = tempPathJson;
final int? tempPort = tempPortJson;
return ServiceReference(
name: tempName,
namespace: tempNamespace,
path: tempPath,
port: tempPort,
);
}