prettyJson static method

String prettyJson(
  1. String json, {
  2. int indent = 2,
})

Implementation

static String prettyJson(String json, {int indent = 2}) => JsonEncoder.withIndent(" " * indent).convert(jsonDecode(json));