toString method

  1. @override
String toString()
override

Returns a string representation of this exception.

The returned string includes the exception type and the associated error message.

Implementation

@override
String toString() {
  return 'JsonConversionException: $message';
}