fromNative static method

DrivingVehicleRestriction fromNative(
  1. DrivingVehicleRestrictionNative native
)

Implementation

static DrivingVehicleRestriction fromNative(
    DrivingVehicleRestrictionNative native) {
  return DrivingVehicleRestriction(
      weightLimit: to_platform.toPlatformFromPointerFloat(native.weightLimit),
      axleWeightLimit:
          to_platform.toPlatformFromPointerFloat(native.axleWeightLimit),
      maxWeightLimit:
          to_platform.toPlatformFromPointerFloat(native.maxWeightLimit),
      heightLimit: to_platform.toPlatformFromPointerFloat(native.heightLimit),
      widthLimit: to_platform.toPlatformFromPointerFloat(native.widthLimit),
      lengthLimit: to_platform.toPlatformFromPointerFloat(native.lengthLimit),
      payloadLimit:
          to_platform.toPlatformFromPointerFloat(native.payloadLimit),
      minEcoClass:
          to_platform.toPlatformFromPointerUint32(native.minEcoClass),
      trailerNotAllowed:
          to_platform.toPlatformFromPointerBool(native.trailerNotAllowed),
      legal: to_platform.toPlatformFromPointerBool(native.legal));
}