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