toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type,
    'message': message,
    'error_path': exceptionPath ?? '',
    'status_code': statusCode,
    'response': response,
    'request': request,
    'user_info': userInfo,
    'device_info': deviceInfo.toJson(),
  };
}