createOrModifyHealthcareProfessionals method
Future<List<HealthcareProfessional> ?>
createOrModifyHealthcareProfessionals(
- List<
HealthcareProfessional> healthcareProfessionals
override
Creates new healthcare professionals or modify a list of existing ones.
Parameters:
- List healthcareProfessionals (required): The list of healthcare professionals that must be created / updated in the database.
Implementation
@override
Future<List<HealthcareProfessional>?> createOrModifyHealthcareProfessionals(List<HealthcareProfessional> healthcareProfessionals) async =>
(await Future.wait(
healthcareProfessionals.map((healthcareProfessional) async => this.createOrModifyHealthcareProfessional(healthcareProfessional))))
.whereType<HealthcareProfessional>()
.toList();