fromPointer static method
Implementation
static DrivingManoeuvreVehicleRestriction? fromPointer(
ffi.Pointer<ffi.Void> ptr,
{core.bool needFree = true}) {
if (ptr == ffi.nullptr) {
return null;
}
final result = DrivingManoeuvreVehicleRestrictionImpl.fromNative(
ptr.cast<DrivingManoeuvreVehicleRestrictionNative>().ref);
if (needFree) {
malloc.free(ptr);
}
return result;
}