package io.flow.github.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import io.flow.github.v0.enums.ContentsType import io.flow.github.v0.enums.Encoding import java.io.Serializable import kotlin.Long import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Contents( @JsonProperty("type") @get:JsonProperty("type") val type: ContentsType, @JsonProperty("encoding") @get:JsonProperty("encoding") val encoding: Encoding, @JsonProperty("size") @get:JsonProperty("size") val size: Long, @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("path") @get:JsonProperty("path") val path: String, @JsonProperty("content") @get:JsonProperty("content") val content: String?, @JsonProperty("sha") @get:JsonProperty("sha") val sha: String, @JsonProperty("url") @get:JsonProperty("url") val url: String, @JsonProperty("git_url") @get:JsonProperty("git_url") val gitUrl: String, @JsonProperty("html_url") @get:JsonProperty("html_url") val htmlUrl: String, @JsonProperty("download_url") @get:JsonProperty("download_url") val downloadUrl: String ) : Serializable { fun toJsonString(): String = io.flow.github.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Contents = io.flow.github.v0.models.JacksonObjectMapperFactory.create().readValue( json, Contents::class.java) } }