convert static method

String convert(
  1. String jsonString
)

Implementation

static String convert(String jsonString) {
  final decodedJson = jsonDecode(jsonString);
  const encoder = JsonEncoder.withIndent('  ');
  return encoder.convert(decodedJson);
}