prettify property

String get prettify

Implementation

String get prettify {
  if (this != null) {
    try {
      var decoded = json.decode(this!);
      var encoder = const JsonEncoder.withIndent('   ');
      return encoder.convert(decoded);
    } catch (e) {
      return 'N/A-Cannot Parse';
    }
  }
  return 'N/A';
}