createUsersGoogleOauth method

Future<CreateUsers200Response?> createUsersGoogleOauth(
  1. String companyId,
  2. UsersInput usersInput, {
  3. int? page,
  4. int? limit,
  5. String? sortBy,
  6. String? sortOrder,
  7. String? search,
})

POST /companies/{company_id}/users/google-oauth

Parameters:

  • String companyId (required): Unique identifier for the Company

  • UsersInput usersInput (required):

  • int page: Page number for pagination

  • int limit: Number of items per page

  • String sortBy: Field to sort by

  • String sortOrder: Sort order (ascending or descending)

  • String search: Search term to filter results

Implementation

Future<CreateUsers200Response?> createUsersGoogleOauth(String companyId, UsersInput usersInput, { int? page, int? limit, String? sortBy, String? sortOrder, String? search, }) async {
  final response = await createUsersGoogleOauthWithHttpInfo(companyId, usersInput,  page: page, limit: limit, sortBy: sortBy, sortOrder: sortOrder, search: search, );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateUsers200Response',) as CreateUsers200Response;

  }
  return null;
}