package cerium.termsteelversionapi.v0.models import cerium.termsteelversionapi.v0.enums.FileFlag import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Represents a source file */ @JsonIgnoreProperties(ignoreUnknown=true) data class File( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("dir") @get:JsonProperty("dir") val dir: String?, @JsonProperty("contents") @get:JsonProperty("contents") val contents: String, @JsonProperty("flags") @get:JsonProperty("flags") val flags: List? ) : Serializable { fun toJsonString(): String = cerium.termsteelversionapi.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): File = cerium.termsteelversionapi.v0.models.JacksonObjectMapperFactory.create().readValue( json, File::class.java) } }