toPTRouteInstruction method

PTRouteInstruction? toPTRouteInstruction()

Convert to a PTRouteInstruction from this one.

Returns

  • PTRouteInstruction

Implementation

PTRouteInstruction? toPTRouteInstruction() {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RouteInstruction',
    'toPTRouteInstruction',
  );

  if (resultString['result'] == -1) {
    return null;
  }

  return PTRouteInstruction.init(resultString['result']);
}