1 /*
2  *  Make.org Core API
3  *  Copyright (C) 2021 Make.org
4  *
5  * This program is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU Affero General Public License as
7  *  published by the Free Software Foundation, either version 3 of the
8  *  License, or (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU Affero General Public License for more details.
14  *
15  *  You should have received a copy of the GNU Affero General Public License
16  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
17  *
18  */
19 
20 package org.make.api.views
21 
22 import io.circe.Encoder
23 import io.circe.generic.semiauto.deriveEncoder
24 import io.swagger.annotations.ApiModelProperty
25 import org.make.api.question.QuestionOfOperationResponse
26 import org.make.api.views.Highlights
27 import org.make.api.views.HomePageViewResponse.PostResponse
28 import org.make.core.CirceFormatters
29 import org.make.core.post.indexed.IndexedPost
30 
31 import java.net.URI
32 import scala.annotation.meta.field
33 
34 final case class HomePageViewResponse(
35   highlights: Highlights,
36   currentQuestions: Seq[QuestionOfOperationResponse],
37   pastQuestions: Seq[QuestionOfOperationResponse],
38   featuredQuestions: Seq[QuestionOfOperationResponse],
39   posts: Seq[PostResponse]
40 )
41 
42 object HomePageViewResponse extends CirceFormatters {
43   final case class PostResponse(
44     title: String,
45     description: String,
46     @(ApiModelProperty @field)(dataType = "string", example = "https://example.com/picture.png", required = true) picture: URI,
47     @(ApiModelProperty @field)(dataType = "string", example = "picture alternative") alt: Option[String],
48     @(ApiModelProperty @field)(dataType = "string", example = "https://example.com/link", required = true) link: URI
49   )
50   object PostResponse {
51     def fromIndexedPost(post: IndexedPost): PostResponse =
52       PostResponse(
53         title = post.name,
54         description = post.summary,
55         picture = post.thumbnailUrl,
56         alt = post.thumbnailAlt,
57         link = post.sourceUrl
58       )
59 
60   }
61 
62   implicit val postEncoder: Encoder[PostResponse] = deriveEncoder
63   implicit val highlightsEncoder: Encoder[Highlights] = deriveEncoder
64   implicit val encoder: Encoder[HomePageViewResponse] = deriveEncoder
65 }
Line Stmt Id Pos Tree Symbol Tests Code
52 29717 2015 - 2199 Apply org.make.api.views.HomePageViewResponse.PostResponse.apply org.make.api.views.homeviewservicecomponenttest HomePageViewResponse.this.PostResponse.apply(post.name, post.summary, post.thumbnailUrl, post.thumbnailAlt, post.sourceUrl)
53 29074 2045 - 2054 Select org.make.core.post.indexed.IndexedPost.name org.make.api.views.homeviewservicecomponenttest post.name
54 30429 2078 - 2090 Select org.make.core.post.indexed.IndexedPost.summary org.make.api.views.homeviewservicecomponenttest post.summary
55 29502 2110 - 2127 Select org.make.core.post.indexed.IndexedPost.thumbnailUrl org.make.api.views.homeviewservicecomponenttest post.thumbnailUrl
56 28782 2143 - 2160 Select org.make.core.post.indexed.IndexedPost.thumbnailAlt org.make.api.views.homeviewservicecomponenttest post.thumbnailAlt
57 30168 2177 - 2191 Select org.make.core.post.indexed.IndexedPost.sourceUrl org.make.api.views.homeviewservicecomponenttest post.sourceUrl
62 28915 2258 - 2271 ApplyToImplicitArgs io.circe.generic.semiauto.deriveEncoder io.circe.generic.semiauto.deriveEncoder[org.make.api.views.HomePageViewResponse.PostResponse]({ val inst$macro$24: io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.HomePageViewResponse.PostResponse] = { final class anon$lazy$macro$23 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$23 = { anon$lazy$macro$23.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$1: io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.HomePageViewResponse.PostResponse] = encoding.this.DerivedAsObjectEncoder.deriveEncoder[org.make.api.views.HomePageViewResponse.PostResponse, shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.views.HomePageViewResponse.PostResponse, (Symbol @@ String("title")) :: (Symbol @@ String("description")) :: (Symbol @@ String("picture")) :: (Symbol @@ String("alt")) :: (Symbol @@ String("link")) :: shapeless.HNil, String :: String :: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.views.HomePageViewResponse.PostResponse, (Symbol @@ String("title")) :: (Symbol @@ String("description")) :: (Symbol @@ String("picture")) :: (Symbol @@ String("alt")) :: (Symbol @@ String("link")) :: shapeless.HNil](::.apply[Symbol @@ String("title"), (Symbol @@ String("description")) :: (Symbol @@ String("picture")) :: (Symbol @@ String("alt")) :: (Symbol @@ String("link")) :: shapeless.HNil.type](scala.Symbol.apply("title").asInstanceOf[Symbol @@ String("title")], ::.apply[Symbol @@ String("description"), (Symbol @@ String("picture")) :: (Symbol @@ String("alt")) :: (Symbol @@ String("link")) :: shapeless.HNil.type](scala.Symbol.apply("description").asInstanceOf[Symbol @@ String("description")], ::.apply[Symbol @@ String("picture"), (Symbol @@ String("alt")) :: (Symbol @@ String("link")) :: shapeless.HNil.type](scala.Symbol.apply("picture").asInstanceOf[Symbol @@ String("picture")], ::.apply[Symbol @@ String("alt"), (Symbol @@ String("link")) :: shapeless.HNil.type](scala.Symbol.apply("alt").asInstanceOf[Symbol @@ String("alt")], ::.apply[Symbol @@ String("link"), shapeless.HNil.type](scala.Symbol.apply("link").asInstanceOf[Symbol @@ String("link")], HNil)))))), Generic.instance[org.make.api.views.HomePageViewResponse.PostResponse, String :: String :: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil](((x0$3: org.make.api.views.HomePageViewResponse.PostResponse) => x0$3 match { case (title: String, description: String, picture: java.net.URI, alt: Option[String], link: java.net.URI): org.make.api.views.HomePageViewResponse.PostResponse((title$macro$17 @ _), (description$macro$18 @ _), (picture$macro$19 @ _), (alt$macro$20 @ _), (link$macro$21 @ _)) => ::.apply[String, String :: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil.type](title$macro$17, ::.apply[String, java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil.type](description$macro$18, ::.apply[java.net.URI, Option[String] :: java.net.URI :: shapeless.HNil.type](picture$macro$19, ::.apply[Option[String], java.net.URI :: shapeless.HNil.type](alt$macro$20, ::.apply[java.net.URI, shapeless.HNil.type](link$macro$21, HNil))))).asInstanceOf[String :: String :: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil] }), ((x0$4: String :: String :: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil) => x0$4 match { case (head: String, tail: String :: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil): String :: String :: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil((title$macro$12 @ _), (head: String, tail: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil): String :: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil((description$macro$13 @ _), (head: java.net.URI, tail: Option[String] :: java.net.URI :: shapeless.HNil): java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil((picture$macro$14 @ _), (head: Option[String], tail: java.net.URI :: shapeless.HNil): Option[String] :: java.net.URI :: shapeless.HNil((alt$macro$15 @ _), (head: java.net.URI, tail: shapeless.HNil): java.net.URI :: shapeless.HNil((link$macro$16 @ _), HNil))))) => HomePageViewResponse.this.PostResponse.apply(title$macro$12, description$macro$13, picture$macro$14, alt$macro$15, link$macro$16) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("title"), String, (Symbol @@ String("description")) :: (Symbol @@ String("picture")) :: (Symbol @@ String("alt")) :: (Symbol @@ String("link")) :: shapeless.HNil, String :: java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("description"), String, (Symbol @@ String("picture")) :: (Symbol @@ String("alt")) :: (Symbol @@ String("link")) :: shapeless.HNil, java.net.URI :: Option[String] :: java.net.URI :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("picture"), java.net.URI, (Symbol @@ String("alt")) :: (Symbol @@ String("link")) :: shapeless.HNil, Option[String] :: java.net.URI :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("alt"), Option[String], (Symbol @@ String("link")) :: shapeless.HNil, java.net.URI :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("link"), java.net.URI, shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("link")]](scala.Symbol.apply("link").asInstanceOf[Symbol @@ String("link")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("link")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("alt")]](scala.Symbol.apply("alt").asInstanceOf[Symbol @@ String("alt")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("alt")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("picture")]](scala.Symbol.apply("picture").asInstanceOf[Symbol @@ String("picture")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("picture")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("description")]](scala.Symbol.apply("description").asInstanceOf[Symbol @@ String("description")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("description")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("title")]](scala.Symbol.apply("title").asInstanceOf[Symbol @@ String("title")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("title")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$23.this.inst$macro$22)).asInstanceOf[io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.HomePageViewResponse.PostResponse]]; <stable> <accessor> lazy val inst$macro$22: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericEncoderFordescription: io.circe.Encoder[String] = circe.this.Encoder.encodeString; private[this] val circeGenericEncoderForalt: io.circe.Encoder[Option[String]] = circe.this.Encoder.encodeOption[String](circe.this.Encoder.encodeString); private[this] val circeGenericEncoderForlink: io.circe.Encoder[java.net.URI] = HomePageViewResponse.this.urlEncoder; final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match { case (head: shapeless.labelled.FieldType[Symbol @@ String("title"),String], tail: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingFortitle @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("description"),String], tail: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingFordescription @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI], tail: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForpicture @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]], tail: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForalt @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForlink @ _), shapeless.HNil))))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("title", $anon.this.circeGenericEncoderFordescription.apply(circeGenericHListBindingFortitle)), scala.Tuple2.apply[String, io.circe.Json]("description", $anon.this.circeGenericEncoderFordescription.apply(circeGenericHListBindingFordescription)), scala.Tuple2.apply[String, io.circe.Json]("picture", $anon.this.circeGenericEncoderForlink.apply(circeGenericHListBindingForpicture)), scala.Tuple2.apply[String, io.circe.Json]("alt", $anon.this.circeGenericEncoderForalt.apply(circeGenericHListBindingForalt)), scala.Tuple2.apply[String, io.circe.Json]("link", $anon.this.circeGenericEncoderForlink.apply(circeGenericHListBindingForlink)))) } }; new $anon() }: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("title"),String] :: shapeless.labelled.FieldType[Symbol @@ String("description"),String] :: shapeless.labelled.FieldType[Symbol @@ String("picture"),java.net.URI] :: shapeless.labelled.FieldType[Symbol @@ String("alt"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),java.net.URI] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$23().inst$macro$1 }; shapeless.Lazy.apply[io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.HomePageViewResponse.PostResponse]](inst$macro$24) })
63 30247 2328 - 2341 ApplyToImplicitArgs io.circe.generic.semiauto.deriveEncoder io.circe.generic.semiauto.deriveEncoder[org.make.api.views.Highlights]({ val inst$macro$40: io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.Highlights] = { final class anon$lazy$macro$39 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$39 = { anon$lazy$macro$39.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$25: io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.Highlights] = encoding.this.DerivedAsObjectEncoder.deriveEncoder[org.make.api.views.Highlights, shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.views.Highlights, (Symbol @@ String("participantsCount")) :: (Symbol @@ String("proposalsCount")) :: (Symbol @@ String("partnersCount")) :: shapeless.HNil, Int :: Int :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.views.Highlights, (Symbol @@ String("participantsCount")) :: (Symbol @@ String("proposalsCount")) :: (Symbol @@ String("partnersCount")) :: shapeless.HNil](::.apply[Symbol @@ String("participantsCount"), (Symbol @@ String("proposalsCount")) :: (Symbol @@ String("partnersCount")) :: shapeless.HNil.type](scala.Symbol.apply("participantsCount").asInstanceOf[Symbol @@ String("participantsCount")], ::.apply[Symbol @@ String("proposalsCount"), (Symbol @@ String("partnersCount")) :: shapeless.HNil.type](scala.Symbol.apply("proposalsCount").asInstanceOf[Symbol @@ String("proposalsCount")], ::.apply[Symbol @@ String("partnersCount"), shapeless.HNil.type](scala.Symbol.apply("partnersCount").asInstanceOf[Symbol @@ String("partnersCount")], HNil)))), Generic.instance[org.make.api.views.Highlights, Int :: Int :: Int :: shapeless.HNil](((x0$7: org.make.api.views.Highlights) => x0$7 match { case (participantsCount: Int, proposalsCount: Int, partnersCount: Int): org.make.api.views.Highlights((participantsCount$macro$35 @ _), (proposalsCount$macro$36 @ _), (partnersCount$macro$37 @ _)) => ::.apply[Int, Int :: Int :: shapeless.HNil.type](participantsCount$macro$35, ::.apply[Int, Int :: shapeless.HNil.type](proposalsCount$macro$36, ::.apply[Int, shapeless.HNil.type](partnersCount$macro$37, HNil))).asInstanceOf[Int :: Int :: Int :: shapeless.HNil] }), ((x0$8: Int :: Int :: Int :: shapeless.HNil) => x0$8 match { case (head: Int, tail: Int :: Int :: shapeless.HNil): Int :: Int :: Int :: shapeless.HNil((participantsCount$macro$32 @ _), (head: Int, tail: Int :: shapeless.HNil): Int :: Int :: shapeless.HNil((proposalsCount$macro$33 @ _), (head: Int, tail: shapeless.HNil): Int :: shapeless.HNil((partnersCount$macro$34 @ _), HNil))) => views.this.Highlights.apply(participantsCount$macro$32, proposalsCount$macro$33, partnersCount$macro$34) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("participantsCount"), Int, (Symbol @@ String("proposalsCount")) :: (Symbol @@ String("partnersCount")) :: shapeless.HNil, Int :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("proposalsCount"), Int, (Symbol @@ String("partnersCount")) :: shapeless.HNil, Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("partnersCount"), Int, shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("partnersCount")]](scala.Symbol.apply("partnersCount").asInstanceOf[Symbol @@ String("partnersCount")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("partnersCount")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("proposalsCount")]](scala.Symbol.apply("proposalsCount").asInstanceOf[Symbol @@ String("proposalsCount")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("proposalsCount")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("participantsCount")]](scala.Symbol.apply("participantsCount").asInstanceOf[Symbol @@ String("participantsCount")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("participantsCount")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$39.this.inst$macro$38)).asInstanceOf[io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.Highlights]]; <stable> <accessor> lazy val inst$macro$38: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericEncoderForpartnersCount: io.circe.Encoder[Int] = circe.this.Encoder.encodeInt; final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match { case (head: shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int], tail: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForparticipantsCount @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int], tail: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForproposalsCount @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForpartnersCount @ _), shapeless.HNil))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("participantsCount", $anon.this.circeGenericEncoderForpartnersCount.apply(circeGenericHListBindingForparticipantsCount)), scala.Tuple2.apply[String, io.circe.Json]("proposalsCount", $anon.this.circeGenericEncoderForpartnersCount.apply(circeGenericHListBindingForproposalsCount)), scala.Tuple2.apply[String, io.circe.Json]("partnersCount", $anon.this.circeGenericEncoderForpartnersCount.apply(circeGenericHListBindingForpartnersCount)))) } }; new $anon() }: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("participantsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("proposalsCount"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("partnersCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$39().inst$macro$25 }; shapeless.Lazy.apply[io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.Highlights]](inst$macro$40) })
64 29481 2398 - 2411 ApplyToImplicitArgs io.circe.generic.semiauto.deriveEncoder io.circe.generic.semiauto.deriveEncoder[org.make.api.views.HomePageViewResponse]({ val inst$macro$64: io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.HomePageViewResponse] = { final class anon$lazy$macro$63 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$63 = { anon$lazy$macro$63.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$41: io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.HomePageViewResponse] = encoding.this.DerivedAsObjectEncoder.deriveEncoder[org.make.api.views.HomePageViewResponse, shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.views.HomePageViewResponse, (Symbol @@ String("highlights")) :: (Symbol @@ String("currentQuestions")) :: (Symbol @@ String("pastQuestions")) :: (Symbol @@ String("featuredQuestions")) :: (Symbol @@ String("posts")) :: shapeless.HNil, org.make.api.views.Highlights :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.views.HomePageViewResponse, (Symbol @@ String("highlights")) :: (Symbol @@ String("currentQuestions")) :: (Symbol @@ String("pastQuestions")) :: (Symbol @@ String("featuredQuestions")) :: (Symbol @@ String("posts")) :: shapeless.HNil](::.apply[Symbol @@ String("highlights"), (Symbol @@ String("currentQuestions")) :: (Symbol @@ String("pastQuestions")) :: (Symbol @@ String("featuredQuestions")) :: (Symbol @@ String("posts")) :: shapeless.HNil.type](scala.Symbol.apply("highlights").asInstanceOf[Symbol @@ String("highlights")], ::.apply[Symbol @@ String("currentQuestions"), (Symbol @@ String("pastQuestions")) :: (Symbol @@ String("featuredQuestions")) :: (Symbol @@ String("posts")) :: shapeless.HNil.type](scala.Symbol.apply("currentQuestions").asInstanceOf[Symbol @@ String("currentQuestions")], ::.apply[Symbol @@ String("pastQuestions"), (Symbol @@ String("featuredQuestions")) :: (Symbol @@ String("posts")) :: shapeless.HNil.type](scala.Symbol.apply("pastQuestions").asInstanceOf[Symbol @@ String("pastQuestions")], ::.apply[Symbol @@ String("featuredQuestions"), (Symbol @@ String("posts")) :: shapeless.HNil.type](scala.Symbol.apply("featuredQuestions").asInstanceOf[Symbol @@ String("featuredQuestions")], ::.apply[Symbol @@ String("posts"), shapeless.HNil.type](scala.Symbol.apply("posts").asInstanceOf[Symbol @@ String("posts")], HNil)))))), Generic.instance[org.make.api.views.HomePageViewResponse, org.make.api.views.Highlights :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil](((x0$11: org.make.api.views.HomePageViewResponse) => x0$11 match { case (highlights: org.make.api.views.Highlights, currentQuestions: Seq[org.make.api.question.QuestionOfOperationResponse], pastQuestions: Seq[org.make.api.question.QuestionOfOperationResponse], featuredQuestions: Seq[org.make.api.question.QuestionOfOperationResponse], posts: Seq[org.make.api.views.HomePageViewResponse.PostResponse]): org.make.api.views.HomePageViewResponse((highlights$macro$57 @ _), (currentQuestions$macro$58 @ _), (pastQuestions$macro$59 @ _), (featuredQuestions$macro$60 @ _), (posts$macro$61 @ _)) => ::.apply[org.make.api.views.Highlights, Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil.type](highlights$macro$57, ::.apply[Seq[org.make.api.question.QuestionOfOperationResponse], Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil.type](currentQuestions$macro$58, ::.apply[Seq[org.make.api.question.QuestionOfOperationResponse], Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil.type](pastQuestions$macro$59, ::.apply[Seq[org.make.api.question.QuestionOfOperationResponse], Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil.type](featuredQuestions$macro$60, ::.apply[Seq[org.make.api.views.HomePageViewResponse.PostResponse], shapeless.HNil.type](posts$macro$61, HNil))))).asInstanceOf[org.make.api.views.Highlights :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil] }), ((x0$12: org.make.api.views.Highlights :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil) => x0$12 match { case (head: org.make.api.views.Highlights, tail: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil): org.make.api.views.Highlights :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil((highlights$macro$52 @ _), (head: Seq[org.make.api.question.QuestionOfOperationResponse], tail: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil): Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil((currentQuestions$macro$53 @ _), (head: Seq[org.make.api.question.QuestionOfOperationResponse], tail: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil): Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil((pastQuestions$macro$54 @ _), (head: Seq[org.make.api.question.QuestionOfOperationResponse], tail: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil): Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil((featuredQuestions$macro$55 @ _), (head: Seq[org.make.api.views.HomePageViewResponse.PostResponse], tail: shapeless.HNil): Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil((posts$macro$56 @ _), HNil))))) => views.this.HomePageViewResponse.apply(highlights$macro$52, currentQuestions$macro$53, pastQuestions$macro$54, featuredQuestions$macro$55, posts$macro$56) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("highlights"), org.make.api.views.Highlights, (Symbol @@ String("currentQuestions")) :: (Symbol @@ String("pastQuestions")) :: (Symbol @@ String("featuredQuestions")) :: (Symbol @@ String("posts")) :: shapeless.HNil, Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("currentQuestions"), Seq[org.make.api.question.QuestionOfOperationResponse], (Symbol @@ String("pastQuestions")) :: (Symbol @@ String("featuredQuestions")) :: (Symbol @@ String("posts")) :: shapeless.HNil, Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("pastQuestions"), Seq[org.make.api.question.QuestionOfOperationResponse], (Symbol @@ String("featuredQuestions")) :: (Symbol @@ String("posts")) :: shapeless.HNil, Seq[org.make.api.question.QuestionOfOperationResponse] :: Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("featuredQuestions"), Seq[org.make.api.question.QuestionOfOperationResponse], (Symbol @@ String("posts")) :: shapeless.HNil, Seq[org.make.api.views.HomePageViewResponse.PostResponse] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("posts"), Seq[org.make.api.views.HomePageViewResponse.PostResponse], shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("posts")]](scala.Symbol.apply("posts").asInstanceOf[Symbol @@ String("posts")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("posts")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("featuredQuestions")]](scala.Symbol.apply("featuredQuestions").asInstanceOf[Symbol @@ String("featuredQuestions")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("featuredQuestions")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("pastQuestions")]](scala.Symbol.apply("pastQuestions").asInstanceOf[Symbol @@ String("pastQuestions")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("pastQuestions")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("currentQuestions")]](scala.Symbol.apply("currentQuestions").asInstanceOf[Symbol @@ String("currentQuestions")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("currentQuestions")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("highlights")]](scala.Symbol.apply("highlights").asInstanceOf[Symbol @@ String("highlights")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("highlights")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$63.this.inst$macro$62)).asInstanceOf[io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.HomePageViewResponse]]; <stable> <accessor> lazy val inst$macro$62: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericEncoderForhighlights: io.circe.Encoder[org.make.api.views.Highlights] = HomePageViewResponse.this.highlightsEncoder; private[this] val circeGenericEncoderForfeaturedQuestions: io.circe.Encoder.AsArray[Seq[org.make.api.question.QuestionOfOperationResponse]] = circe.this.Encoder.encodeSeq[org.make.api.question.QuestionOfOperationResponse](question.this.QuestionOfOperationResponse.codec); private[this] val circeGenericEncoderForposts: io.circe.Encoder.AsArray[Seq[org.make.api.views.HomePageViewResponse.PostResponse]] = circe.this.Encoder.encodeSeq[org.make.api.views.HomePageViewResponse.PostResponse](HomePageViewResponse.this.postEncoder); final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match { case (head: shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights], tail: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForhighlights @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]], tail: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForcurrentQuestions @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]], tail: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForpastQuestions @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]], tail: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForfeaturedQuestions @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForposts @ _), shapeless.HNil))))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("highlights", $anon.this.circeGenericEncoderForhighlights.apply(circeGenericHListBindingForhighlights)), scala.Tuple2.apply[String, io.circe.Json]("currentQuestions", $anon.this.circeGenericEncoderForfeaturedQuestions.apply(circeGenericHListBindingForcurrentQuestions)), scala.Tuple2.apply[String, io.circe.Json]("pastQuestions", $anon.this.circeGenericEncoderForfeaturedQuestions.apply(circeGenericHListBindingForpastQuestions)), scala.Tuple2.apply[String, io.circe.Json]("featuredQuestions", $anon.this.circeGenericEncoderForfeaturedQuestions.apply(circeGenericHListBindingForfeaturedQuestions)), scala.Tuple2.apply[String, io.circe.Json]("posts", $anon.this.circeGenericEncoderForposts.apply(circeGenericHListBindingForposts)))) } }; new $anon() }: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("highlights"),org.make.api.views.Highlights] :: shapeless.labelled.FieldType[Symbol @@ String("currentQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("pastQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("featuredQuestions"),Seq[org.make.api.question.QuestionOfOperationResponse]] :: shapeless.labelled.FieldType[Symbol @@ String("posts"),Seq[org.make.api.views.HomePageViewResponse.PostResponse]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$63().inst$macro$41 }; shapeless.Lazy.apply[io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.api.views.HomePageViewResponse]](inst$macro$64) })