getMedicalLocations method
Implementation
Future<List<MedicalLocation>> getMedicalLocations(String sdkId, List<String> medicalLocationIds) async {
final res = await _methodChannel.invokeMethod<String>(
'MedicalLocationApi.getMedicalLocations',
{
"sdkId": sdkId,
"medicalLocationIds": jsonEncode(medicalLocationIds.map((x0) => x0).toList()),
}
);
if (res == null) throw AssertionError("received null result from platform method getMedicalLocations");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => MedicalLocation.fromJSON(x1) ).toList();
}