implemented *Dec.as_dict