undeletePatients method

Future<List<EncryptedPatient>> undeletePatients(
  1. String sdkId,
  2. List<IdWithMandatoryRev> ids
)

Implementation

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