in src/main/scala/com/gu/contentapi/porter/graphql/Edge.scala [51:69]
def decodeToAny(from:Json):Any = {
(from.asNumber, from.asString, from.asBoolean) match {
case (Some(n), _, _)=>
(n.toLong, n.toInt, n.toBigInt, n.toDouble) match {
case (Some(long), _, _, _)=>
long
case (_, Some(int), _, _) =>
int
case (_, _, Some(bigint), _) =>
bigint
case (_, _, _, double)=>
double
}
case (_, Some(s), _)=>
s
case (_, _, b)=>
b
}
}