package io.flow.github.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import io.flow.github.v0.enums.NodeType import java.io.Serializable import kotlin.Long import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class TreeResult( @JsonProperty("path") @get:JsonProperty("path") val path: String, @JsonProperty("mode") @get:JsonProperty("mode") val mode: String, @JsonProperty("type") @get:JsonProperty("type") val type: NodeType, @JsonProperty("size") @get:JsonProperty("size") val size: Long, @JsonProperty("sha") @get:JsonProperty("sha") val sha: String, @JsonProperty("url") @get:JsonProperty("url") val url: String ) : Serializable { fun toJsonString(): String = io.flow.github.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): TreeResult = io.flow.github.v0.models.JacksonObjectMapperFactory.create().readValue( json, TreeResult::class.java) } }