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