updateTimesheet function

Future<ApiResponse<Timesheets>> updateTimesheet(
  1. ExsitedClient client,
  2. Object createdTimesheetId,
  3. Object payload, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

PATCH /api/{api_version}/timesheets/{timesheet_id}

Implementation

Future<ApiResponse<Timesheets>> updateTimesheet(
  ExsitedClient client,
  Object createdTimesheetId,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPatchRequest(TimesheetsUrls.timesheet,
        pathParams: {'timesheet_id': createdTimesheetId},
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: Timesheets.fromMap);