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

scala.googleapis.bigquery.DoubleRange.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 DoubleRange(
    /** Max value of the double parameter.
      */
    max: Option[Double] = None,
    /** Min value of the double parameter.
      */
    min: Option[Double] = None,
)
object DoubleRange {
  implicit val encoder: Encoder[DoubleRange] = Encoder.instance { x =>
    Json.obj("max" := x.max, "min" := x.min)
  }
  implicit val decoder: Decoder[DoubleRange] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[Double]]("max")
      v1 <- c.get[Option[Double]]("min")
    } yield DoubleRange(v0, v1)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy