createTimesheet function

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

POST /api/{api_version}/timesheets

Implementation

Future<ApiResponse<Timesheets>> createTimesheet(
  ExsitedClient client,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPostRequest(TimesheetsUrls.timesheets,
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: Timesheets.fromMap);