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