1 /*
2  *  Make.org Core API
3  *  Copyright (C) 2018 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.core.feature
21 
22 import io.circe.{Decoder, Encoder, Json}
23 import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
24 import org.make.core.StringValue
25 import org.make.core.question.QuestionId
26 
27 final case class ActiveFeature(
28   activeFeatureId: ActiveFeatureId,
29   featureId: FeatureId,
30   maybeQuestionId: Option[QuestionId]
31 )
32 
33 object ActiveFeature {
34   implicit val encoder: Encoder[ActiveFeature] = deriveEncoder[ActiveFeature]
35   implicit val decoder: Decoder[ActiveFeature] = deriveDecoder[ActiveFeature]
36 }
37 
38 final case class ActiveFeatureId(value: String) extends StringValue
39 
40 object ActiveFeatureId {
41   implicit lazy val activeFeatureIdEncoder: Encoder[ActiveFeatureId] =
42     (a: ActiveFeatureId) => Json.fromString(a.value)
43   implicit lazy val activeFeatureIdDecoder: Decoder[ActiveFeatureId] =
44     Decoder.decodeString.map(ActiveFeatureId(_))
45 
46 }
Line Stmt Id Pos Tree Symbol Tests Code
34 2164 1161 - 1189 ApplyToImplicitArgs io.circe.generic.semiauto.deriveEncoder io.circe.generic.semiauto.deriveEncoder[org.make.core.feature.ActiveFeature]({ val inst$macro$16: io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.core.feature.ActiveFeature] = { final class anon$lazy$macro$15 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$15 = { anon$lazy$macro$15.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$1: io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.core.feature.ActiveFeature] = encoding.this.DerivedAsObjectEncoder.deriveEncoder[org.make.core.feature.ActiveFeature, shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.core.feature.ActiveFeature, (Symbol @@ String("activeFeatureId")) :: (Symbol @@ String("featureId")) :: (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil, org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.core.feature.ActiveFeature, (Symbol @@ String("activeFeatureId")) :: (Symbol @@ String("featureId")) :: (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil](::.apply[Symbol @@ String("activeFeatureId"), (Symbol @@ String("featureId")) :: (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil.type](scala.Symbol.apply("activeFeatureId").asInstanceOf[Symbol @@ String("activeFeatureId")], ::.apply[Symbol @@ String("featureId"), (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil.type](scala.Symbol.apply("featureId").asInstanceOf[Symbol @@ String("featureId")], ::.apply[Symbol @@ String("maybeQuestionId"), shapeless.HNil.type](scala.Symbol.apply("maybeQuestionId").asInstanceOf[Symbol @@ String("maybeQuestionId")], HNil)))), Generic.instance[org.make.core.feature.ActiveFeature, org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil](((x0$3: org.make.core.feature.ActiveFeature) => x0$3 match { case (activeFeatureId: org.make.core.feature.ActiveFeatureId, featureId: org.make.core.feature.FeatureId, maybeQuestionId: Option[org.make.core.question.QuestionId]): org.make.core.feature.ActiveFeature((activeFeatureId$macro$11 @ _), (featureId$macro$12 @ _), (maybeQuestionId$macro$13 @ _)) => ::.apply[org.make.core.feature.ActiveFeatureId, org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil.type](activeFeatureId$macro$11, ::.apply[org.make.core.feature.FeatureId, Option[org.make.core.question.QuestionId] :: shapeless.HNil.type](featureId$macro$12, ::.apply[Option[org.make.core.question.QuestionId], shapeless.HNil.type](maybeQuestionId$macro$13, HNil))).asInstanceOf[org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil] }), ((x0$4: org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil) => x0$4 match { case (head: org.make.core.feature.ActiveFeatureId, tail: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil): org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil((activeFeatureId$macro$8 @ _), (head: org.make.core.feature.FeatureId, tail: Option[org.make.core.question.QuestionId] :: shapeless.HNil): org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil((featureId$macro$9 @ _), (head: Option[org.make.core.question.QuestionId], tail: shapeless.HNil): Option[org.make.core.question.QuestionId] :: shapeless.HNil((maybeQuestionId$macro$10 @ _), HNil))) => feature.this.ActiveFeature.apply(activeFeatureId$macro$8, featureId$macro$9, maybeQuestionId$macro$10) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("activeFeatureId"), org.make.core.feature.ActiveFeatureId, (Symbol @@ String("featureId")) :: (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil, org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("featureId"), org.make.core.feature.FeatureId, (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil, Option[org.make.core.question.QuestionId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("maybeQuestionId"), Option[org.make.core.question.QuestionId], shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("maybeQuestionId")]](scala.Symbol.apply("maybeQuestionId").asInstanceOf[Symbol @@ String("maybeQuestionId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("maybeQuestionId")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("featureId")]](scala.Symbol.apply("featureId").asInstanceOf[Symbol @@ String("featureId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("featureId")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("activeFeatureId")]](scala.Symbol.apply("activeFeatureId").asInstanceOf[Symbol @@ String("activeFeatureId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("activeFeatureId")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$15.this.inst$macro$14)).asInstanceOf[io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.core.feature.ActiveFeature]]; <stable> <accessor> lazy val inst$macro$14: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericEncoderForactiveFeatureId: io.circe.Encoder[org.make.core.feature.ActiveFeatureId] = feature.this.ActiveFeatureId.activeFeatureIdEncoder; private[this] val circeGenericEncoderForfeatureId: io.circe.Encoder[org.make.core.feature.FeatureId] = feature.this.FeatureId.featureIdEncoder; private[this] val circeGenericEncoderFormaybeQuestionId: io.circe.Encoder[Option[org.make.core.question.QuestionId]] = circe.this.Encoder.encodeOption[org.make.core.question.QuestionId](question.this.QuestionId.QuestionIdEncoder); final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match { case (head: shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId], tail: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForactiveFeatureId @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId], tail: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForfeatureId @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingFormaybeQuestionId @ _), shapeless.HNil))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("activeFeatureId", $anon.this.circeGenericEncoderForactiveFeatureId.apply(circeGenericHListBindingForactiveFeatureId)), scala.Tuple2.apply[String, io.circe.Json]("featureId", $anon.this.circeGenericEncoderForfeatureId.apply(circeGenericHListBindingForfeatureId)), scala.Tuple2.apply[String, io.circe.Json]("maybeQuestionId", $anon.this.circeGenericEncoderFormaybeQuestionId.apply(circeGenericHListBindingFormaybeQuestionId)))) } }; new $anon() }: io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.encoding.ReprAsObjectEncoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$15().inst$macro$1 }; shapeless.Lazy.apply[io.circe.generic.encoding.DerivedAsObjectEncoder[org.make.core.feature.ActiveFeature]](inst$macro$16) })
35 5394 1239 - 1267 ApplyToImplicitArgs io.circe.generic.semiauto.deriveDecoder io.circe.generic.semiauto.deriveDecoder[org.make.core.feature.ActiveFeature]({ val inst$macro$32: io.circe.generic.decoding.DerivedDecoder[org.make.core.feature.ActiveFeature] = { final class anon$lazy$macro$31 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$31 = { anon$lazy$macro$31.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$17: io.circe.generic.decoding.DerivedDecoder[org.make.core.feature.ActiveFeature] = decoding.this.DerivedDecoder.deriveDecoder[org.make.core.feature.ActiveFeature, shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.core.feature.ActiveFeature, (Symbol @@ String("activeFeatureId")) :: (Symbol @@ String("featureId")) :: (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil, org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.core.feature.ActiveFeature, (Symbol @@ String("activeFeatureId")) :: (Symbol @@ String("featureId")) :: (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil](::.apply[Symbol @@ String("activeFeatureId"), (Symbol @@ String("featureId")) :: (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil.type](scala.Symbol.apply("activeFeatureId").asInstanceOf[Symbol @@ String("activeFeatureId")], ::.apply[Symbol @@ String("featureId"), (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil.type](scala.Symbol.apply("featureId").asInstanceOf[Symbol @@ String("featureId")], ::.apply[Symbol @@ String("maybeQuestionId"), shapeless.HNil.type](scala.Symbol.apply("maybeQuestionId").asInstanceOf[Symbol @@ String("maybeQuestionId")], HNil)))), Generic.instance[org.make.core.feature.ActiveFeature, org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil](((x0$7: org.make.core.feature.ActiveFeature) => x0$7 match { case (activeFeatureId: org.make.core.feature.ActiveFeatureId, featureId: org.make.core.feature.FeatureId, maybeQuestionId: Option[org.make.core.question.QuestionId]): org.make.core.feature.ActiveFeature((activeFeatureId$macro$27 @ _), (featureId$macro$28 @ _), (maybeQuestionId$macro$29 @ _)) => ::.apply[org.make.core.feature.ActiveFeatureId, org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil.type](activeFeatureId$macro$27, ::.apply[org.make.core.feature.FeatureId, Option[org.make.core.question.QuestionId] :: shapeless.HNil.type](featureId$macro$28, ::.apply[Option[org.make.core.question.QuestionId], shapeless.HNil.type](maybeQuestionId$macro$29, HNil))).asInstanceOf[org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil] }), ((x0$8: org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil) => x0$8 match { case (head: org.make.core.feature.ActiveFeatureId, tail: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil): org.make.core.feature.ActiveFeatureId :: org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil((activeFeatureId$macro$24 @ _), (head: org.make.core.feature.FeatureId, tail: Option[org.make.core.question.QuestionId] :: shapeless.HNil): org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil((featureId$macro$25 @ _), (head: Option[org.make.core.question.QuestionId], tail: shapeless.HNil): Option[org.make.core.question.QuestionId] :: shapeless.HNil((maybeQuestionId$macro$26 @ _), HNil))) => feature.this.ActiveFeature.apply(activeFeatureId$macro$24, featureId$macro$25, maybeQuestionId$macro$26) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("activeFeatureId"), org.make.core.feature.ActiveFeatureId, (Symbol @@ String("featureId")) :: (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil, org.make.core.feature.FeatureId :: Option[org.make.core.question.QuestionId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("featureId"), org.make.core.feature.FeatureId, (Symbol @@ String("maybeQuestionId")) :: shapeless.HNil, Option[org.make.core.question.QuestionId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("maybeQuestionId"), Option[org.make.core.question.QuestionId], shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("maybeQuestionId")]](scala.Symbol.apply("maybeQuestionId").asInstanceOf[Symbol @@ String("maybeQuestionId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("maybeQuestionId")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("featureId")]](scala.Symbol.apply("featureId").asInstanceOf[Symbol @@ String("featureId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("featureId")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("activeFeatureId")]](scala.Symbol.apply("activeFeatureId").asInstanceOf[Symbol @@ String("activeFeatureId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("activeFeatureId")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$31.this.inst$macro$30)).asInstanceOf[io.circe.generic.decoding.DerivedDecoder[org.make.core.feature.ActiveFeature]]; <stable> <accessor> lazy val inst$macro$30: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericDecoderForactiveFeatureId: io.circe.Decoder[org.make.core.feature.ActiveFeatureId] = feature.this.ActiveFeatureId.activeFeatureIdDecoder; private[this] val circeGenericDecoderForfeatureId: io.circe.Decoder[org.make.core.feature.FeatureId] = feature.this.FeatureId.featureIdDecoder; private[this] val circeGenericDecoderFormaybeQuestionId: io.circe.Decoder[Option[org.make.core.question.QuestionId]] = circe.this.Decoder.decodeOption[org.make.core.question.QuestionId](question.this.QuestionId.QuestionIdDecoder); final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("activeFeatureId"), org.make.core.feature.ActiveFeatureId, shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForactiveFeatureId.tryDecode(c.downField("activeFeatureId")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("featureId"), org.make.core.feature.FeatureId, shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForfeatureId.tryDecode(c.downField("featureId")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("maybeQuestionId"), Option[org.make.core.question.QuestionId], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFormaybeQuestionId.tryDecode(c.downField("maybeQuestionId")), ReprDecoder.hnilResult)(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance); final override def decodeAccumulating(c: io.circe.HCursor): io.circe.Decoder.AccumulatingResult[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("activeFeatureId"), org.make.core.feature.ActiveFeatureId, shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForactiveFeatureId.tryDecodeAccumulating(c.downField("activeFeatureId")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("featureId"), org.make.core.feature.FeatureId, shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForfeatureId.tryDecodeAccumulating(c.downField("featureId")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("maybeQuestionId"), Option[org.make.core.question.QuestionId], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFormaybeQuestionId.tryDecodeAccumulating(c.downField("maybeQuestionId")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance) }; new $anon() }: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("activeFeatureId"),org.make.core.feature.ActiveFeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("featureId"),org.make.core.feature.FeatureId] :: shapeless.labelled.FieldType[Symbol @@ String("maybeQuestionId"),Option[org.make.core.question.QuestionId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$31().inst$macro$17 }; shapeless.Lazy.apply[io.circe.generic.decoding.DerivedDecoder[org.make.core.feature.ActiveFeature]](inst$macro$32) })