public function getDesaByParent($provinsi_id, $kota_id, $kecamatan_id)
 {
     $result = [];
     $wilayah = safe_array_access($this->wilayah, $provinsi_id, $kota_id, $kecamatan_id);
     if ($wilayah) {
         foreach ($wilayah as $desa) {
             $result[$desa] = $desa;
         }
     }
     return $result;
 }
 public function generateJson($name, $options = array(), $selected = null)
 {
     $this->withSelected($selected);
     $text_no_selected = safe_array_access($this->text_no_selected, $name);
     if (empty($options)) {
         $options = array('00' => $text_no_selected);
     }
     if ($this->selected) {
         $options['selected'] = $this->selected;
     }
     return json_encode($options);
 }