EndpointAddress.fromJson constructor
Creates a EndpointAddress from JSON data.
Implementation
factory EndpointAddress.fromJson(Map<String, dynamic> json) {
final tempHostnameJson = json['hostname'];
final tempIpJson = json['ip'];
final tempNodeNameJson = json['nodeName'];
final tempTargetRefJson = json['targetRef'];
final String? tempHostname = tempHostnameJson;
final String tempIp = tempIpJson;
final String? tempNodeName = tempNodeNameJson;
final ObjectReference? tempTargetRef = tempTargetRefJson != null
? ObjectReference.fromJson(tempTargetRefJson)
: null;
return EndpointAddress(
hostname: tempHostname,
ip: tempIp,
nodeName: tempNodeName,
targetRef: tempTargetRef,
);
}