getCurrentProfile method Null safety
Get the current profile
Implementation
Future<CurrentProfileResponse> getCurrentProfile() async {
final response = await command('GetCurrentProfile');
if (response == null) {
throw Exception('Problem getting current profile');
}
return CurrentProfileResponse.fromJson(response.rawResponse);
}