toPretty method

String toPretty()

Convert map to a String withIndent

Implementation

String toPretty() {
  String data = defaultString;
  try {
    JsonEncoder encoder = const JsonEncoder.withIndent('  ', toEncodable);
    data = encoder.convert(this);
  } on Exception catch (e, s) {
    errorLogsNS("Error in toPretty\n\n *$this*", e, s);
  }
  return data;
}