modifyPatients method

Future<List<IdWithRev>> modifyPatients(
  1. String sdkId,
  2. List<EncryptedPatient> patientDtos
)

Implementation

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