package Ġpd . sensor . reactive . server . service Ċ Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġkotlinx . coroutines . flow . map Ċ import Ġpd . sensor . domain . Sensor Data Ċ import Ġpd . sensor . reactive . server . repository . Sensor Data Entity Ċ Ċ fun ĠSensor Data Entity . to Domain () Ġ= ĠSensor Data ( temperature , Ġlocation , Ġinstant , Ġid ) Ċ fun ĠSensor Data . to Entity () Ġ= ĠSensor Data Entity ( temperature , Ġlocation , Ġinstant , Ġid ) Ċ Ċ fun ĠFlow < Sensor Data Entity >. map To Domain (): ĠFlow < Sensor Data > Ġ= Ġmap Ġ{ Ġit . to Domain () Ġ} Ċ fun ĠFlow < Sensor Data >. map To Entity (): ĠFlow < Sensor Data Entity > Ġ= Ġmap Ġ{ Ġit . to Entity () Ġ}