assignHealthcareParty method

Future<User> assignHealthcareParty(
  1. String sdkId,
  2. String healthcarePartyId
)

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);
}