getProfileDetails function

Future<ProfileDetails> getProfileDetails(
  1. String jid
)

Implementation

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