DurationJsonExtension extension

Expose toJson on Duration Expose static fromJson builder

on

Methods

toJson() int

Available on Duration, provided by the DurationJsonExtension extension

Returns a serialized version of the Duration in milliseconds.

Static Methods

fromJson<T>(dynamic value) Duration

Available on Duration, provided by the DurationJsonExtension extension

Returns a deserialized version of the Duration.