def METHOD_NAME(file_and_service_params: dict[str, Any]):
    request_params: dict[str, Any] = file_and_service_params
    file_params = parse_obj_or_none(FileParams, request_params)
    assert file_params
    service_params = parse_obj_or_none(ServiceParams, request_params)
    assert service_params
    file_and_service_params = parse_obj_or_none(
        ServiceAndFileParams | FileParams | ServiceParams, request_params
    )
    assert isinstance(file_and_service_params, ServiceAndFileParams)