login method Null safety
- {required String token}
Login into Wialon with the API token
Implementation
Future<Map<String, dynamic>> login({required String token}) async {
dynamic result = await call(method: 'token/login', parameters: {'token': token});
_userId = result['user']['id'];
sessionId = result['eid'];
return result;
}