package de.nccloud.registry.crds.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] */ @JsonIgnoreProperties(ignoreUnknown=true) data class ServiceRegistration( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("version") @get:JsonProperty("version") val version: String, @JsonProperty("type") @get:JsonProperty("type") val type: de.nccloud.registry.api.v0.enums.ServiceType, @JsonProperty("uri") @get:JsonProperty("uri") val uri: String, @JsonProperty("title") @get:JsonProperty("title") val title: String?, @JsonProperty("description") @get:JsonProperty("description") val description: String? ) : Serializable { fun toJsonString(): String = de.nccloud.registry.crds.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): ServiceRegistration = de.nccloud.registry.crds.v0.models.JacksonObjectMapperFactory.create().readValue( json, ServiceRegistration::class.java) } }