// FilterZero applies zero value filtering
// This method will return empty optional if value inside optional is zero or missing
FilterZero applies zero value filtering
This method will return empty optional if value inside optional is zero or missing
// FilterZero applies zero value filtering // This method will return empty optional if value inside optional is zero or missing
func (d Duration) FilterZero() Duration {
	if !d.IsPresent() || d.value.Nanoseconds() == 0 {
		return Duration{}
	}
	return d
}
func ( d Duration ) FilterZero ( ) Duration { if ! d . IsPresent ( ) || d . value . Nanoseconds ( ) == 0 { return Duration { } } return d }
FilterZero applies zero value filtering
This method will return empty optional if value inside optional is zero or missing
FilterZero applies zero value filtering This method will return empty optional if value inside optional is zero or missing