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

scala.googleapis.storage.ObjectAccessControlProjectTeam.scala Maven / Gradle / Ivy

The newest version!
package googleapis.storage

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

final case class ObjectAccessControlProjectTeam(
    /** The project number.
      */
    projectNumber: Option[String] = None,
    /** The team.
      */
    team: Option[String] = None,
)
object ObjectAccessControlProjectTeam {
  implicit val encoder: Encoder[
    ObjectAccessControlProjectTeam
  ] = Encoder.instance { x =>
    Json.obj("projectNumber" := x.projectNumber, "team" := x.team)
  }
  implicit val decoder: Decoder[
    ObjectAccessControlProjectTeam
  ] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[String]]("projectNumber")
      v1 <- c.get[Option[String]]("team")
    } yield ObjectAccessControlProjectTeam(v0, v1)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy