assignHealthcareParty method
Implementation
Future<User> assignHealthcareParty(String sdkId, String healthcarePartyId) async {
final res = await _methodChannel.invokeMethod<String>(
'UserApi.assignHealthcareParty',
{
"sdkId": sdkId,
"healthcarePartyId": jsonEncode(healthcarePartyId),
}
);
if (res == null) throw AssertionError("received null result from platform method assignHealthcareParty");
final parsedResJson = jsonDecode(res);
return User.fromJSON(parsedResJson);
}