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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesCloudNetworkRuleSetData{}

	s.AllSubjectTags = o.AllSubjectTags
	s.IncomingRules = o.IncomingRules
	s.OutgoingRules = o.OutgoingRules
	s.Subject = o.Subject
	s.Type = o.Type

	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 *CloudNetworkRuleSetData) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesCloudNetworkRuleSetData{}
	s.AllSubjectTags = o.AllSubjectTags
	s.IncomingRules = o.IncomingRules
	s.OutgoingRules = o.OutgoingRules
	s.Subject = o.Subject
	s.Type = o.Type
	return s, nil
}
func ( o * CloudNetworkRuleSetData ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesCloudNetworkRuleSetData { } s . AllSubjectTags = o . AllSubjectTags s . IncomingRules = o . IncomingRules s . OutgoingRules = o . OutgoingRules s . Subject = o . Subject s . Type = o . Type return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .