package Ġcom . t ait asci ore dev . android . xing test . data . db Ċ Ċ import Ġandroid . arch . persistence . room . Type Converter Ċ import Ġcom . google . gson . Gson Ċ import Ġcom . t ait asci ore dev . android . xing test . data . entity . Repository Entity Ċ import Ġcom . t ait asci ore dev . android . xing test . fromJson Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġr rt at asci ore Ġon Ġ 2 0 / 0 1 / 1 8 . Ċ Ġ*/ Ċ class ĠRepository Type Converter Ġ{ ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġfun Ġfrom List ToString ( list : ĠList < Repository Entity >): ĠString Ġ= ĠGson (). toJson ( list ) ĊĊĠĠĠ Ġ@ Type Converter ĊĠĠĠ Ġfun Ġfrom String ToList ( json : ĠString ): ĠList < Repository Entity > Ġ= ĠGson (). fromJson < List < Repository Entity >>( json ) Ċ }