bulkCreate method

FutureOr<Response> bulkCreate(
  1. List<EntityModel> entities
)

Implementation

FutureOr<Response> bulkCreate(List<EntityModel> entities) async {
  return executeFuture(
    future: () async {
      return await dio.post(
        bulkCreatePath,
        options: Options(headers: {
          "content-type": 'application/json',
        }),
        queryParameters: {
          "tenantId": DigitDataModelSingleton().tenantId,
        },
        data: {
          EntityPlurals.getPluralForEntityName(entityName): _getMap(entities),
        },
      );
    },
  );
}