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

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

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