toOTRoute method
Convert to a OTRoute from this one.
Returns
- OTRoute object if the route is an over track route, null otherwise
Implementation
OTRoute? toOTRoute() {
  final OperationResult resultString = objectMethod(
    super.pointerId,
    'Route',
    'toOTRoute',
  );
  if (resultString['result'] == -1) {
    return null;
  }
  return OTRoute.init(resultString['result']);
}