startEvaluation method

Future<Map<String, dynamic>> startEvaluation(
  1. String userId
)

Implementation

Future<Map<String, dynamic>> startEvaluation(String userId) async {
  canEvaluate = true;
  if (canEvaluate) {
    this.userId = userId;
    final Map<String, dynamic> resJson =
        await startSessionRequest('evaluation');
    sessionId = resJson['data']['session']['id'];
    return {
      'message':
          'Successfully connected. Recalibrate: ${canRecalibrate}, Evaluate: ${canEvaluate}',
    };
  }
  return {'message': "Can't evaluate sensie. Please check async storage."};
}