tollSections property

List<TollSection> get tollSections

Tolled sections contained in this segment.

Returns

  • List<TollSection>: list of tolled sections with start/end distances, cost and currency.

Implementation

List<TollSection> get tollSections {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RouteSegmentBase',
    'getTollSections',
  );

  final List<dynamic> tollSectionsJson = resultString['result'];

  return tollSectionsJson
      .map((final dynamic e) => TollSection.fromJson(e))
      .toList();
}