pretty static method

String pretty(
  1. Object? value
)

Indented (readable) JSON string.

Implementation

static String pretty(Object? value) {
  if (value == null) return '';
  try {
    return _prettyEncoder.convert(forJsonView(value));
  } catch (_) {
    return '$value';
  }
}