toJson method

Map<String, dynamic> toJson ()

Extracts the InvocationError data into a JSON representation for the Runtime Interface.

Implementation

Map<String, dynamic> toJson() => {
      'errorMessage': error.toString(),
      'errorType': "InvocationError",
      'stackTrace': this.stackTrace.toString()
    };