package Ġde . bel abs . app statistics . stor ere views Ċ Ċ import Ġkotlinx . serialization . Experimental Serialization Api Ċ import Ġkotlinx . serialization . Serial Name Ċ import Ġkotlinx . serialization . Serializable Ċ import Ġkotlinx . serialization . Serializer Ċ import Ġkotlinx . serialization . descriptors . Primitive Kind Ċ import Ġkotlinx . serialization . descriptors . Primitive Serial Descriptor Ċ import Ġkotlinx . serialization . encoding . Decoder Ċ import Ġkotlinx . serialization . encoding . Encoder Ċ import Ġjava . time . Instant Ċ Ċ @ Serializable Ġinternal Ġdata Ġclass ĠReview ( ĊĠ Ġ@ Serial Name (" id ") Ġval Ġid : ĠString , ĊĠ Ġ@ Serial Name (" title ") Ġval Ġtitle : ĠString ? Ġ= Ġnull , ĊĠ Ġ@ Serial Name (" language ") Ġval Ġlanguage : ĠString ? Ġ= Ġnull , ĊĠ Ġ@ Serial Name (" content ") Ġval Ġcontent : ĠString , ĊĠ Ġ@ Serial Name (" rating ") Ġval Ġrating : ĠInt , ĊĠ Ġ@ Serial Name (" version ") Ġval Ġversion : ĠString ? Ġ= Ġnull , ĊĠ Ġ@ Serial Name (" author ") Ġval Ġauthor : ĠString , ĊĠ Ġ@ Serial Name (" updated ") Ġ@ Serializable ( with Ġ= ĠInstant Serializer :: class ) Ġval Ġupdated : ĠInstant Ċ ) Ċ Ċ @ Opt In ( Experimental Serialization Api :: class ) Ċ @ Serializer ( for Class Ġ= ĠInstant :: class ) Ġprivate Ġobject ĠInstant Serializer Ġ{ ĊĠ Ġoverride Ġval Ġdescriptor Ġget () Ġ= ĠPrimitive Serial Descriptor (" Instant Serializer ", ĠPrimitive Kind . LONG ) ĊĊĠ Ġoverride Ġfun Ġdeserialize ( decoder : ĠDecoder ) Ġ= ĠInstant . of Epoch Milli ( decoder . decode Long ()) ĊĊĠ Ġoverride Ġfun Ġserialize ( encoder : ĠEncoder , Ġvalue : ĠInstant ) Ġ{ ĊĠĠĠ Ġencoder . encode Long ( value . to Epoch Milli ()) ĊĠ Ġ} Ċ } Ċ