getMedicalLocation method

Future<MedicalLocation> getMedicalLocation(
  1. String sdkId,
  2. String locationId
)

Implementation

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