fromNative static method

DrivingFlags fromNative(
  1. DrivingFlagsNative native
)

Implementation

static DrivingFlags fromNative(DrivingFlagsNative native) {
  return DrivingFlags(
      blocked: native.blocked,
      hasFerries: native.hasFerries,
      hasTolls: native.hasTolls,
      requiresAccessPass: native.requiresAccessPass,
      forParking: native.forParking,
      futureBlocked: native.futureBlocked,
      deadJam: native.deadJam,
      builtOffline: native.builtOffline,
      predicted: native.predicted,
      hasRuggedRoads: native.hasRuggedRoads,
      hasFordCrossing: native.hasFordCrossing,
      hasVehicleRestrictions: native.hasVehicleRestrictions,
      hasUnpavedRoads: native.hasUnpavedRoads,
      hasInPoorConditionRoads: native.hasInPoorConditionRoads,
      hasRailwayCrossing: native.hasRailwayCrossing,
      hasCheckpoints: native.hasCheckpoints,
      scheduledDeparture: native.scheduledDeparture,
      hasNonTransactionalTolls: native.hasNonTransactionalTolls,
      hasTunnels: native.hasTunnels,
      hasHighways: native.hasHighways);
}