package Ġde . isk ae . remote . mapper Ċ Ċ import Ġde . isk ae . data . model . Weather Entity Ċ import Ġde . isk ae . remote . model . Weather Response Model Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠWeather Response Model Mapper Ġ@ Inject Ġconstructor () Ġ: ĠModelMapper < Weather Response Model , ĠWeather Entity > Ġ{ ĊĠ Ġoverride Ġfun Ġmap From Model ( model : ĠWeather Response Model ): ĠWeather Entity Ġ{ ĊĠĠĠ Ġreturn ĠWeather Entity ( ĊĠĠĠĠĠ Ġid Ġ= Ġmodel . id , ĊĠĠĠĠĠ Ġname Ġ= Ġmodel . name , ĊĠĠĠĠĠ Ġlatitude Ġ= Ġmodel . coord . lat , ĊĠĠĠĠĠ Ġlongitude Ġ= Ġmodel . coord . lon , ĊĠĠĠĠĠ Ġdescription Ġ= Ġmodel . weather [ 0 ]. description , Ġ// ĠCurrent Ġweather Ġhas Ġonly Ġone Ġweather Ġelement ĊĠĠĠĠĠ Ġicon Ġ= Ġmodel . weather [ 0 ]. icon , ĊĠĠĠĠĠ Ġtemperature Ġ= Ġmodel . main . temp , ĊĠĠĠĠĠ Ġpressure Ġ= Ġmodel . main . pressure , ĊĠĠĠĠĠ Ġtemp Min Ġ= Ġmodel . main . temp _ min , ĊĠĠĠĠĠ Ġtemp Max Ġ= Ġmodel . main . temp _ max , ĊĠĠĠĠĠ Ġwind Speed Ġ= Ġmodel . wind . speed , ĊĠĠĠĠĠ Ġwind Degree Ġ= Ġmodel . wind . deg , ĊĠĠĠĠĠ Ġcloud iness Percentage Ġ= Ġmodel . clouds . all , ĊĠĠĠĠĠ Ġsun rise Ġ= Ġmodel . sys . sun rise , ĊĠĠĠĠĠ Ġsun set Ġ= Ġmodel . sys . sun set ĊĠĠĠ Ġ) ĊĠ Ġ} Ċ Ċ }