logJson static method

String logJson(
  1. Map<String, dynamic> json,
  2. String name
)

Implementation

static String logJson(Map<String, dynamic> json, String name) {
  JsonEncoder encoder = const JsonEncoder.withIndent('  ');
  String prettyprint = encoder.convert(json);
  return prettyprint;
}