toJson method
Extracts the InvocationError data into a JSON representation for the Runtime Interface.
Implementation
Map<String, dynamic> toJson() => {
'errorMessage': error.toString(),
'errorType': 'InvocationError',
};
Extracts the InvocationError data into a JSON representation for the Runtime Interface.
Map<String, dynamic> toJson() => {
'errorMessage': error.toString(),
'errorType': 'InvocationError',
};