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),
		}
	).catchError(convertPlatformException);
	if (res == null) throw AssertionError("received null result from platform method getMedicalLocation");
	final parsedResJson = jsonDecode(res);
	return parsedResJson == null ? null : MedicalLocation.fromJSON(parsedResJson);
}