func (a *UnionField) Equals(b *UnionField) bool {
	if a == nil || b == nil {
		return a == nil && b == nil
	}
	if a.FieldName != b.FieldName {
		return false
	}
	if a.DiscriminatorValue != b.DiscriminatorValue {
		return false
	}
	return true
}
// Equals returns true iff the two UnionFields are equal.
Equals returns true iff the two UnionFields are equal.
// Equals returns true iff the two UnionFields are equal .
func (a *UnionField) Equals(b *UnionField) bool {
	if a == nil || b == nil {
		return a == nil && b == nil
	}
	if a.FieldName != b.FieldName {
		return false
	}
	if a.DiscriminatorValue != b.DiscriminatorValue {
		return false
	}
	return true
}
func ( a * UnionField ) Equals ( b * UnionField ) bool { if a == nil || b == nil { return a == nil && b == nil } if a . FieldName != b . FieldName { return false } if a . DiscriminatorValue != b . DiscriminatorValue { return false } return true }
Equals returns true iff the two UnionFields are equal.
Equals returns true iff the two UnionFields are equal .