All Downloads are FREE. Search and download functionalities are using the official Maven repository.

notion.api.v1.request.pages.RetrievePagePropertyItemRequest.kt Maven / Gradle / Ivy

package notion.api.v1.request.pages

import notion.api.v1.request.common.Pagination

data class RetrievePagePropertyItemRequest
@JvmOverloads
constructor(
    val pageId: String,
    val propertyId: String,
    override var startCursor: String? = null,
    override var pageSize: Int? = null,
) : Pagination {

  fun toQuery(): Map> {
    val body = mutableMapOf>()
    if (startCursor != null) {
      body["start_cursor"] = listOf(startCursor!!)
    }
    if (pageSize != null) {
      body["page_size"] = listOf(pageSize.toString())
    }
    return body
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy