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