package Ġcom . jetbrains . edu . learning . serialization . converter . json . local Ċ Ċ import Ġcom . fasterxml . jackson . databind . node . Object Node Ċ import Ġcom . jetbrains . edu . learning . E du Names Ċ import Ġcom . jetbrains . edu . learning . serialization . Serialization Utils . Json . CO URSE _ TYPE Ċ import Ġcom . jetbrains . edu . learning . serialization . Serialization Utils . Json . PROGRAM M ING _ LANGUAGE Ċ Ċ class ĠTo 8 Version Local Course Converter Ġ: ĠJson Local Course Converter Ġ{ ĊĊĠ Ġoverride Ġfun Ġconvert ( local Course : ĠObject Node ): ĠObject Node Ġ{ ĊĠĠĠ Ġval Ġlanguage Ġ= Ġlocal Course . get ( PROGRAM M ING _ LANGUAGE )?. as Text () Ġ?: Ġ"" ĊĠĠĠ Ġvar Ġcourse Type Ġ= Ġlocal Course . get ( CO URSE _ TYPE )?. as Text () Ġ?: ĠE du Names . PY CHAR M ĊĠĠĠ Ġif Ġ(" edu - android " Ġ== Ġlanguage ) Ġ{ ĊĠĠĠĠĠ Ġlocal Course . put ( PROGRAM M ING _ LANGUAGE , ĠE du Names . K OT LIN ) ĊĠĠĠĠĠ Ġcourse Type Ġ= ĠE du Names . ANDROID ĊĠĠĠ Ġ} ĊĠĠĠ Ġlocal Course . put ( CO URSE _ TYPE , Ġcourse Type ) ĊĊĠĠĠ Ġreturn Ġlocal Course ĊĠ Ġ} Ċ } Ċ