func (o *CloudNetworkRule) GetBSON() (interface{}, error) {

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesCloudNetworkRule{}

	s.Action = o.Action
	s.Networks = o.Networks
	s.Object = o.Object
	s.Priority = o.Priority
	s.ProtocolPorts = o.ProtocolPorts
	s.StoredNetworks = o.StoredNetworks

	return s, nil
}
// GetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
GetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// GetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *CloudNetworkRule) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesCloudNetworkRule{}
	s.Action = o.Action
	s.Networks = o.Networks
	s.Object = o.Object
	s.Priority = o.Priority
	s.ProtocolPorts = o.ProtocolPorts
	s.StoredNetworks = o.StoredNetworks
	return s, nil
}
func ( o * CloudNetworkRule ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesCloudNetworkRule { } s . Action = o . Action s . Networks = o . Networks s . Object = o . Object s . Priority = o . Priority s . ProtocolPorts = o . ProtocolPorts s . StoredNetworks = o . StoredNetworks return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .