duration property
Indicates the total duration of this leg, as a field with the following elements:
value
indicates the duration in seconds.text
contains a human-readable representation of the duration.
These fields may be absent if the duration is unknown.
Implementation
final DirectionsDuration? duration;