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