All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.googleapis.bigquery.ConnectionProperty.scala Maven / Gradle / Ivy

There is a newer version: 0.6.1-v2-20241111
Show newest version
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