package de.nccloud.common.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Int import kotlin.Long import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Paging information returned from a paged request. */ @JsonIgnoreProperties(ignoreUnknown=true) data class PageResponse( @JsonProperty("offset") @get:JsonProperty("offset") val offset: Int, @JsonProperty("limit") @get:JsonProperty("limit") val limit: Int, @JsonProperty("sort") @get:JsonProperty("sort") val sort: List, @JsonProperty("total_results") @get:JsonProperty("total_results") val totalResults: Long, @JsonProperty("total_pages") @get:JsonProperty("total_pages") val totalPages: Long ) : Serializable { fun toJsonString(): String = de.nccloud.common.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): PageResponse = de.nccloud.common.v0.models.JacksonObjectMapperFactory.create().readValue( json, PageResponse::class.java) } }