toJson method

int toJson()

Returns a serialized version of the Duration in milliseconds.

Implementation

int toJson() => inMilliseconds;