getRequestModel function

DashboardRequestModel getRequestModel({
  1. required String visualizationCode,
  2. required String visualizationType,
  3. required int startDate,
  4. required int endDate,
})

Implementation

DashboardRequestModel getRequestModel({
  required String visualizationCode,
  required String visualizationType,
  required int startDate,
  required int endDate,
}) {
  return DashboardRequestModel(
    aggregationRequestDto: AggregationRequestDto(
        visualizationCode: visualizationCode,
        visualizationType: visualizationType,
        requestDate: RequestDate(
          startDate: startDate,
          endDate: endDate,
          interval: DSSEnums.day.toValue(),
          title: DSSEnums.home.toValue(),
        )),
    headers: DSSHeaders(
      tenantId: DashboardSingleton().tenantId,
    ),
  );
}