scala.googleapis.storage.BucketAccessControlProjectTeam.scala Maven / Gradle / Ivy
The newest version!
package googleapis.storage
import io.circe._
import io.circe.syntax._
final case class BucketAccessControlProjectTeam(
/** The project number.
*/
projectNumber: Option[String] = None,
/** The team.
*/
team: Option[String] = None,
)
object BucketAccessControlProjectTeam {
implicit val encoder: Encoder[
BucketAccessControlProjectTeam
] = Encoder.instance { x =>
Json.obj("projectNumber" := x.projectNumber, "team" := x.team)
}
implicit val decoder: Decoder[
BucketAccessControlProjectTeam
] = Decoder.instance { c =>
for {
v0 <- c.get[Option[String]]("projectNumber")
v1 <- c.get[Option[String]]("team")
} yield BucketAccessControlProjectTeam(v0, v1)
}
}