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

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

package googleapis.firebase

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

final case class ListIosAppsResponse(
    /** List of each `IosApp` associated with the specified `FirebaseProject`.
      */
    apps: Option[List[IosApp]] = None,
    /** If the result list is too large to fit in a single response, then a token is returned. If the string is empty, then this response is the last page of results. This token can be used in a subsequent call to `ListIosApps` to find the next group of Apps. Page tokens are short-lived and should not be persisted.
      */
    nextPageToken: Option[String] = None,
)
object ListIosAppsResponse {
  implicit val encoder: Encoder[ListIosAppsResponse] = Encoder.instance { x =>
    Json.obj("apps" := x.apps, "nextPageToken" := x.nextPageToken)
  }
  implicit val decoder: Decoder[ListIosAppsResponse] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[List[IosApp]]]("apps")
      v1 <- c.get[Option[String]]("nextPageToken")
    } yield ListIosAppsResponse(v0, v1)

  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy