getRequestModel function
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,
),
);
}