paths property
Each list of LatLongs creates a polyline
An array of paths, or line segments, that make up the polyline. Each path is a two-dimensional array of numbers representing the coordinates of each vertex in the path in the spatial reference of the view. Each vertex is represented as an array of two, three, or four numbers.
https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#paths
Implementation
final List<List<List<double>>> paths;