package io.flow.dependency.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 UserIdentifier( @JsonProperty("id") @get:JsonProperty("id") val id: String, @JsonProperty("user") @get:JsonProperty("user") val user: io.flow.common.v0.models.UserReference, @JsonProperty("value") @get:JsonProperty("value") val value: String ) : Serializable { fun toJsonString(): String = io.flow.dependency.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): UserIdentifier = io.flow.dependency.v0.models.JacksonObjectMapperFactory.create().readValue( json, UserIdentifier::class.java) } }