tollSections property

List<TollSection> get tollSections

Get a list of toll sections on the route segment.

Returns

  • A list of TollSection objects representing the tolled sections of the route segment.

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();
}