toPointer static method

Implementation

static ffi.Pointer<ffi.Void> toPointer(
    MasstransitTransportThreadAlertClosedUntil? val) {
  if (val == null) {
    return ffi.nullptr;
  }
  final result =
      malloc.call<MasstransitTransportThreadAlertClosedUntilNative>();
  result.ref = toNative(val);

  return result.cast();
}