// ĠCopyright Ġ( c ) ĠMicrosoft ĠCorporation . ĠAll Ġrights Ġreserved Ċ Ċ package Ġcom . microsoft . did . sdk . datasource . db Ċ Ċ import Ġandroidx . room . Type Converter Ċ import Ġcom . microsoft . did . sdk . credential . service . models . contracts . display . Display Contract Ċ import Ġcom . microsoft . did . sdk . credential . models . receipt s . Receipt Action Ċ import Ġcom . microsoft . did . sdk . credential . models . Ver ifiable Credential Content Ċ import Ġcom . microsoft . did . sdk . identifier . models . identifier document . Identifier Document Ċ import Ġcom . microsoft . did . sdk . util . serializer . Serializer Ċ Ċ object ĠRoom Converters Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġserializer : ĠSerializer Ġ= ĊĠĠĠĠĠĠĠ ĠSerializer () ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġdisplay Contract ToString ( display Contract : ĠDisplay Contract ) Ġ= Ġserializer . stringify ( Display Contract . serializer (), Ġdisplay Contract ) ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġstring To Display Contract ( serialized Contract : ĠString ) Ġ= Ġserializer . parse ( Display Contract . serializer (), Ġserialized Contract ) ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġvc Contents ToString ( ver ifiable Credential Content : ĠVer ifiable Credential Content ) Ġ= ĊĠĠĠĠĠĠĠ Ġserializer . stringify ( Ver ifiable Credential Content . serializer (), Ġver ifiable Credential Content ) ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġstring To Vc Contents ( serialized Vc Content : ĠString ) Ġ= Ġserializer . parse ( Ver ifiable Credential Content . serializer (), Ġserialized Vc Content ) ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġstring To Identifier Document ( serialized Doc : ĠString ) Ġ= Ġserializer . parse ( Identifier Document . serializer (), Ġserialized Doc ) ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġidentifier Document ToString ( id Document : ĠIdentifier Document ) Ġ= Ġserializer . stringify ( Identifier Document . serializer (), Ġid Document ) ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġto Receipt Action ( value : ĠString ) Ġ= Ġenum ValueOf < Receipt Action >( value ) ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġfrom Receipt Action ( value : ĠRe ceipt Action ) Ġ= Ġvalue . name Ċ }