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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesCloudRoute{}

	s.DestinationIPv4CIDR = o.DestinationIPv4CIDR
	s.DestinationIPv6CIDR = o.DestinationIPv6CIDR
	s.DestinationPrefixListID = o.DestinationPrefixListID
	s.NextHopID = o.NextHopID
	s.NextHopType = o.NextHopType
	s.StoredDestinationIPv4CIDR = o.StoredDestinationIPv4CIDR
	s.StoredDestinationIPv6CIDR = o.StoredDestinationIPv6CIDR

	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 *CloudRoute) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesCloudRoute{}
	s.DestinationIPv4CIDR = o.DestinationIPv4CIDR
	s.DestinationIPv6CIDR = o.DestinationIPv6CIDR
	s.DestinationPrefixListID = o.DestinationPrefixListID
	s.NextHopID = o.NextHopID
	s.NextHopType = o.NextHopType
	s.StoredDestinationIPv4CIDR = o.StoredDestinationIPv4CIDR
	s.StoredDestinationIPv6CIDR = o.StoredDestinationIPv6CIDR
	return s, nil
}
func ( o * CloudRoute ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesCloudRoute { } s . DestinationIPv4CIDR = o . DestinationIPv4CIDR s . DestinationIPv6CIDR = o . DestinationIPv6CIDR s . DestinationPrefixListID = o . DestinationPrefixListID s . NextHopID = o . NextHopID s . NextHopType = o . NextHopType s . StoredDestinationIPv4CIDR = o . StoredDestinationIPv4CIDR s . StoredDestinationIPv6CIDR = o . StoredDestinationIPv6CIDR return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .