package Ġde . r ki . cor on aw arn app . util . serialization Ċ Ċ import Ġcom . google . gson . Gson Ċ import Ġcom . google . gson . Gson Builder Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . Re usable Ċ import Ġde . r ki . cor on aw arn app . util . encryption . rsa . RSA Key Ċ import Ġde . r ki . cor on aw arn app . util . serialization . adapter . ByteArray Adapter Ċ import Ġde . r ki . cor on aw arn app . util . serialization . adapter . ByteString Base 6 4 Adapter Ċ import Ġde . r ki . cor on aw arn app . util . serialization . adapter . Duration Adapter Ċ import Ġde . r ki . cor on aw arn app . util . serialization . adapter . Instant Adapter Ċ import Ġde . r ki . cor on aw arn app . util . serialization . adapter . LocalDate Adapter Ċ import Ġok io . ByteString Ċ import Ġorg . joda . time . Duration Ċ import Ġorg . joda . time . Instant Ċ import Ġorg . joda . time . LocalDate Ċ Ċ @ Module Ċ class ĠSerialization Module Ġ{ ĊĊĠĠĠ Ġ@ Base Gson ĊĠĠĠ Ġ@ Re usable ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġbase Gson (): ĠGson Ġ= ĠGson Builder () ĊĠĠĠĠĠĠĠ Ġ. register Type Adapter ( Instant :: class . java , ĠInstant Adapter ()) ĊĠĠĠĠĠĠĠ Ġ. register Type Adapter ( LocalDate :: class . java , ĠLocalDate Adapter ()) ĊĠĠĠĠĠĠĠ Ġ. register Type Adapter ( Duration :: class . java , ĠDuration Adapter ()) ĊĠĠĠĠĠĠĠ Ġ. register Type Adapter ( ByteArray :: class . java , ĠByteArray Adapter ()) ĊĠĠĠĠĠĠĠ Ġ. register Type Adapter ( ByteString :: class . java , ĠByte String Base 6 4 Adapter ()) ĊĠĠĠĠĠĠĠ Ġ. register Type Adapter ( RSA Key . Public :: class . java , ĠRSA Key . Public . Gson Adapter ()) ĊĠĠĠĠĠĠĠ Ġ. register Type Adapter ( RSA Key . Private :: class . java , ĠRSA Key . Private . Gson Adapter ()) ĊĠĠĠĠĠĠĠ Ġ. create () Ċ } Ċ