package com.teambytes.hipchat.sns.bridge.v1.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class ServiceInfo( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("version") @get:JsonProperty("version") val version: String, @JsonProperty("scala_version") @get:JsonProperty("scala_version") val scalaVersion: String, @JsonProperty("sbt_version") @get:JsonProperty("sbt_version") val sbtVersion: String, @JsonProperty("build_time") @get:JsonProperty("build_time") val buildTime: Instant ) : Serializable { fun toJsonString(): String = com.teambytes.hipchat.sns.bridge.v1.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): ServiceInfo = com.teambytes.hipchat.sns.bridge.v1.models.JacksonObjectMapperFactory.create().readValue( json, ServiceInfo::class.java) } }