deleteMedicalLocations method

Future<List<DocIdentifier>> deleteMedicalLocations(
  1. String sdkId,
  2. ListOfIds locationIds
)

Implementation

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