errorResponse method
A failed response to the request with requestId.
Implementation
Map<String, Object?> errorResponse(
String requestId, {
int code = 300,
String message = 'User declined the transaction',
}) => {
'error': {'code': code, 'message': message},
'id': requestId,
};