fullReport method

String fullReport()

Generates an indented JSON report of the full conversion context.

Implementation

String fullReport() {
  final encodable = jsonSafe(context);
  final json = const JsonEncoder.withIndent('  ').convert(encodable);
  return 'ConversionException (Full Report) {\n'
      '  error: $error,\n'
      '  errorType: $errorType,\n'
      '  context:\n$json,\n'
      '  stackTrace: $stackTrace\n'
      '}';
}