getProfileDetails function
Implementation
Future<Profile> getProfileDetails(String jid) async {
debugPrint("getProfileDetails jid $jid");
var value = await Mirrorfly.getProfileDetails(jid.checkNull());
// var profile = profiledata(value.toString());
// var profile = await compute(profiledata, value.toString());
// debugPrint("profile ${profile.name}");
var profile = Profile.fromJson(json.decode(value.toString()));
return profile;
}