package Ġio . github . rgb ri zzle h izzle . k not ion . serializers Ċ Ċ import Ġio . github . rgb ri zzle h izzle . k not ion . models . page . property . Boolean Formula Page Configuration Ċ import Ġio . github . rgb ri zzle h izzle . k not ion . models . page . property . Date Formula Page Configuration Ċ import Ġio . github . rgb ri zzle h izzle . k not ion . models . page . property . Formula Page Configuration Ċ import Ġio . github . rgb ri zzle h izzle . k not ion . models . page . property . Number Formula Page Configuration Ċ import Ġio . github . rgb ri zzle h izzle . k not ion . models . page . property . String Formula Page Configuration Ċ import Ġkotlinx . serialization . json . Json Content Pol ymorphic Serializer Ċ import Ġkotlinx . serialization . json . Json Element Ċ import Ġkotlinx . serialization . json . jsonObject Ċ Ċ object ĠFormula Configuration Serializer Ġ: ĊĠ ĠJson Content Pol ymorphic Serializer < Formula Page Configuration >( Formula Page Configuration :: class ) Ġ{ ĊĠ Ġoverride Ġfun Ġselect Deserializer ( element : ĠJson Element ) Ġ= Ġwhen Ġ{ ĊĠĠĠ Ġ" string " Ġin Ġelement . jsonObject Ġ-> ĠString Formula Page Configuration . serializer () ĊĠĠĠ Ġ" number " Ġin Ġelement . jsonObject Ġ-> ĠNumber Formula Page Configuration . serializer () ĊĠĠĠ Ġ" boolean " Ġin Ġelement . jsonObject Ġ-> ĠBoolean Formula Page Configuration . serializer () ĊĠĠĠ Ġ" date " Ġin Ġelement . jsonObject Ġ-> ĠDate Formula Page Configuration . serializer () ĊĠĠĠ Ġelse Ġ-> Ġerror (" Unhandled Ġparent Ġtype Ġin Ġ$ element ") ĊĠ Ġ} Ċ } Ċ