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

scala.googleapis.firebase.ProductMetadata.scala Maven / Gradle / Ivy

There is a newer version: 0.4.5-v1beta1-20240918
Show newest version
package googleapis.firebase

import io.circe._
import io.circe.syntax._

final case class ProductMetadata(
    /** List of warnings related to the associated operation.
      */
    warningMessages: Option[List[String]] = None
)
object ProductMetadata {
  implicit val encoder: Encoder[ProductMetadata] = Encoder.instance { x =>
    Json.obj("warningMessages" := x.warningMessages)
  }
  implicit val decoder: Decoder[ProductMetadata] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[List[String]]]("warningMessages")
    } yield ProductMetadata(v0)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy