xxxxxxxxxx
// Code to print json Data pretty (Formatted) in Console/Terminal
Map jsonData = {
'name': 'flutter',
'description': 'demo',
'price': 49
};
JsonEncoder encoder = new JsonEncoder.withIndent(' ');
String prettyprint = encoder.convert(jsonData);
print(prettyprint);
// If It helps please upvote this to reach maximum devlopers...