
scala.googleapis.bigquery.ConnectionProperty.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class ConnectionProperty(
/** The key of the property to set.
*/
key: Option[String] = None,
/** The value of the property to set.
*/
value: Option[String] = None,
)
object ConnectionProperty {
implicit val encoder: Encoder[ConnectionProperty] = Encoder.instance { x =>
Json.obj("key" := x.key, "value" := x.value)
}
implicit val decoder: Decoder[ConnectionProperty] = Decoder.instance { c =>
for {
v0 <- c.get[Option[String]]("key")
v1 <- c.get[Option[String]]("value")
} yield ConnectionProperty(v0, v1)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy