// MarshalJSON marshals the type property.
MarshalJSON marshals the type property.
// MarshalJSON marshals the type property .
func (p *TypeProperty) MarshalJSON() ([]byte, error) {
	if len(p.types) == 1 {
		return json.Marshal(p.types[0])
	}
	return json.Marshal(p.types)
}
func ( p * TypeProperty ) MarshalJSON ( ) ( [ ] byte , error ) { if len ( p . types ) == 1 { return json . Marshal ( p . types [ 0 ] ) } return json . Marshal ( p . types ) }
MarshalJSON marshals the type property.
MarshalJSON marshals the type property .