def parse_into_dict(cls, defined_object, defined_object_dict = None): if defined_object_dict == None: defined_object_dict = {} if defined_object.get_type() is not None: defined_object_dict['type'] = defined_object.get_type() if defined_object.get_Value() is not None: defined_object_dict['value'] = common_methods.parse_element_into_dict(defined_object.get_Value()) return defined_object_dict
def parse_into_dict(cls, defined_object, defined_object_dict = None): if defined_object_dict == None: defined_object_dict = {} if defined_object.get_category() is not None: defined_object_dict['category'] = defined_object.get_category() if defined_object.get_is_source() is not None: defined_object_dict['is_source'] = defined_object.get_is_source() if defined_object.get_is_destination() is not None: defined_object_dict['is_destination'] = defined_object.get_is_destination() if defined_object.get_Address_Value() is not None: defined_object_dict['address_value'] = common_methods.parse_element_into_dict(defined_object.get_Address_Value()) if defined_object.get_Ext_Category() is not None: defined_object_dict['ext_category'] = common_methods.parse_element_into_dict(defined_object.get_Ext_Category()) if defined_object.get_VLAN_Name() is not None: defined_object_dict['vlan_name'] = common_methods.parse_element_into_dict(defined_object.get_VLAN_Name()) if defined_object.get_VLAN_Num() is not None: defined_object_dict['vlan_num'] = common_methods.parse_element_into_dict(defined_object.get_VLAN_Num()) return defined_object_dict
def parse_into_dict(cls, defined_object, defined_object_dict=None): if defined_object_dict == None: defined_object_dict = {} if defined_object.get_type() is not None: defined_object_dict['type'] = defined_object.get_type() if defined_object.get_Value() is not None: defined_object_dict[ 'value'] = common_methods.parse_element_into_dict( defined_object.get_Value()) return defined_object_dict