toNative static method

DrivingVehicleRestrictionNative toNative(
  1. DrivingVehicleRestriction obj
)

Implementation

static DrivingVehicleRestrictionNative toNative(
    DrivingVehicleRestriction obj) {
  return _DrivingVehicleRestrictionNativeInit(
      to_native.toNativePtrFloat(obj.weightLimit),
      to_native.toNativePtrFloat(obj.axleWeightLimit),
      to_native.toNativePtrFloat(obj.maxWeightLimit),
      to_native.toNativePtrFloat(obj.heightLimit),
      to_native.toNativePtrFloat(obj.widthLimit),
      to_native.toNativePtrFloat(obj.lengthLimit),
      to_native.toNativePtrFloat(obj.payloadLimit),
      to_native.toNativePtrUint32(obj.minEcoClass),
      to_native.toNativePtrBool(obj.trailerNotAllowed),
      to_native.toNativePtrBool(obj.legal));
}