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 tempPortJson = json['port'];
final String? tempName = tempNameJson;
final String? tempNamespace = tempNamespaceJson;
final int? tempPort = tempPortJson;
return ServiceReference(
name: tempName,
namespace: tempNamespace,
port: tempPort,
);
}