implement and use EasyConfig.to_dict function