scala.googleapis.bigquery.PartitionedColumn.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class PartitionedColumn(
/** Required. The name of the partition column.
*/
field: Option[String] = None
)
object PartitionedColumn {
implicit val encoder: Encoder[PartitionedColumn] = Encoder.instance { x =>
Json.obj("field" := x.field)
}
implicit val decoder: Decoder[PartitionedColumn] = Decoder.instance { c =>
for {
v0 <- c.get[Option[String]]("field")
} yield PartitionedColumn(v0)
}
}