package Ġcom . demo . common . serializer Ċ Ċ import Ġkotlinx . serialization . Deserialization Strategy Ċ import Ġkotlinx . serialization . Serialization Strategy Ċ import Ġkotlinx . serialization . encode ToString Ċ import Ġkotlinx . serialization . json . Json Ċ import Ġjavax . inject . Inject ĊĊ Ċ internal Ġclass ĠSerializer Impl Ġ@ Inject Ġconstructor ( private Ġval Ġjson : ĠJson ) Ġ: ĠSerializer Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠAny > Ġserialize ( de serialized : ĠT , Ġserialization Strategy : ĠSerialization Strategy < T >): ĠString Ġ= ĊĠĠĠĠĠĠĠ Ġjson . encode ToString ( serialization Strategy , Ġdeserialized ) ĊĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠAny > Ġdeserialize ( serialized : ĠString , Ġde serialization Strategy : ĠDeserial ization Strategy < T >): ĠT Ġ= ĊĠĠĠĠĠĠĠ Ġjson . decode FromString ( de serialization Strategy , Ġserialized ) Ċ }