NodeAddress.fromJson constructor
Creates a NodeAddress from JSON data.
Implementation
factory NodeAddress.fromJson(Map<String, dynamic> json) {
final tempAddressJson = json['address'];
final tempTypeJson = json['type'];
final String tempAddress = tempAddressJson;
final String tempType = tempTypeJson;
return NodeAddress(
address: tempAddress,
type: tempType,
);
}