package Ġme . li ang fe i . are ap icker . sample . data Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . google . gson . Gson Ċ import Ġme . li ang fe i . are ap icker . R FA rea Model Ċ import Ġme . li ang fe i . are ap icker . sample . utils . FileUtils Ċ Ċ /** Ċ Ġ* ĠArea Ġdata Ġrepository . Ċ Ġ* Ċ Ġ* ĠCreated Ġby ĠLI ANG . FE I Ġon Ġ 2 4 / 1 / 2 0 1 9 . Ċ Ġ*/ Ċ class ĠArea Data Repository ( val Ġcontext : ĠContext ) Ġ{ ĊĠĠĠ Ġfun Ġget Area Data () Ġ: ĠMutable LiveData < R FA rea Model > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġareas Json Ġ= ĠFileUtils . read Asset File ToString ( context , Ġ" areas . json ") ĊĠĠĠĠĠĠĠ Ġval Ġarea Model Ġ= ĠGson (). fromJson < R FA rea Model >( areas Json , ĠR FA rea Model :: class . java ) ĊĠĠĠĠĠĠĠ Ġreturn ĠMutable LiveData < R FA rea Model >(). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalue Ġ= Ġarea Model ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }