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

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

package googleapis.firebase

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

final case class OperationMetadata(value: Option[JsonObject] = None)
object OperationMetadata {
  implicit val encoder: Encoder[OperationMetadata] = Encoder.instance { x =>
    Json.obj("value" := x.value)
  }
  implicit val decoder: Decoder[OperationMetadata] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[JsonObject]]("value")
    } yield OperationMetadata(v0)

  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy