// ToMillis returns optional int, built from value of optional duration
ToMillis returns optional int, built from value of optional duration
// ToMillis returns optional int built from value of optional duration
func (d Duration) ToMillis() Int {
	if d.IsPresent() {
		return OfInt(int(d.value / time.Millisecond))
	}
	return Int{}
}
func ( d Duration ) ToMillis ( ) Int { if d . IsPresent ( ) { return OfInt ( int ( d . value / time . Millisecond ) ) } return Int { } }
ToMillis returns optional int, built from value of optional duration
ToMillis returns optional int built from value of optional duration