Convert a small js code in dart

In Progress Posted 3 years ago Paid on delivery
In Progress Paid on delivery

Hi,

I need someone to help me to translate this js code in dart.

// example JSON

var j = '{"$id":"0","name":"Parent","child":{"$id":"1", "name":"Child","parent":{"$ref":"0"}},"nullValue":null}'

function parseAndResolve(json) {

var refMap = {};

return [login to view URL](json, function (key, value) {

if (key === '$id') {

refMap[value] = this;

// return undefined so that the property is deleted

return void(0);

}

if (value && value.$ref) { return refMap[value.$ref]; }

return value;

});

}

[login to view URL](parseAndResolve(j));

Dart Flutter

Project ID: #30114222

About the project

3 proposals Remote project Active 3 years ago

3 freelancers are bidding on average €33 for this job

lehalyga22

Hi, How are you today ? I'm Flutter expert and I have built a lot of app using Dart So I can help you soon Please contact me and discuss more details Thanks

€30 EUR in 1 day
(8 Reviews)
4.9
oksanA56

I can do it within 1 hour. Hi, Hope you are doing well! Thanks for sharing your project requirement with me. As a highly skilled Flutter developer, I can help you perfectly. I am very confident with my skills and I'd l More

€20 EUR in 1 day
(0 Reviews)
0.0
service199026

Hi! I am a dart expert and have rich experience in the Program development area. I think I can do it perfectly. If you give me chance, I will make good result. please let's discuss more details over chat. Warm Regards More

€50 EUR in 1 day
(0 Reviews)
0.0