package de.nccloud.reporting.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Represents the source for a single projection field from a topic's schema. */ @JsonIgnoreProperties(ignoreUnknown=true) data class ProjectionFieldSource( @JsonProperty("topic") @get:JsonProperty("topic") val topic: String, @JsonProperty("path") @get:JsonProperty("path") val path: String, @JsonProperty("filter") @get:JsonProperty("filter") val filter: String ) : Serializable { fun toJsonString(): String = de.nccloud.reporting.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): ProjectionFieldSource = de.nccloud.reporting.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, ProjectionFieldSource::class.java) } }