deletePatients method

Future<List<DocIdentifier>> deletePatients(
  1. String sdkId,
  2. List<Patient> patients
)

Implementation

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