DurationToJson extension

Expose toJson on Duration

on

Methods

toJson() int
Returns a serialized version of the Duration in milliseconds.