package Ġcom . d oo ol . poke dex . data . mapper Ċ Ċ import Ġcom . d oo ol . poke dex . data . response . Damage Relations Response Ċ import Ġcom . d oo ol . poke dex . data . response . Pokemon Type Res istance Response Ċ import Ġcom . d oo ol . poke dex . domain . model . Damage Ċ import Ġcom . d oo ol . poke dex . domain . model . Pokemon Type Res istance Ċ Ċ fun ĠPokemon Type Res istance Response . to Model (): ĠPokemon Type Res istance Ġ= Ġwith ( this ) Ġ{ ĊĠĠĠ ĠPokemon Type Res istance ( ĊĠĠĠĠĠĠĠ Ġid Ġ= Ġid , ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġname , ĊĠĠĠĠĠĠĠ Ġdamage Relations Ġ= Ġdamage Relations . to Model () ĊĠĠĠ Ġ) Ċ } Ċ Ċ fun ĠDamage Relations Response . to Model (): ĠList < Damage > Ġ= Ġwith ( this ) Ġ{ ĊĠĠĠ Ġval Ġlist Ġ= Ġmutable ListOf < Damage >() ĊĠĠĠ Ġdouble Damage From . map Ġ{ Ġlist . add ( Damage ( it . name , Ġ 2 f )) Ġ} ĊĠĠĠ Ġhalf Damage From . map Ġ{ Ġlist . add ( Damage ( it . name , Ġ 0 . 5 f )) Ġ} ĊĠĠĠ Ġno Damage From . map Ġ{ Ġlist . add ( Damage ( it . name , Ġ 0 f )) Ġ} ĊĠĠĠ Ġlist Ċ }