fromNative static method

MasstransitTransportThreadAlert fromNative(
  1. MasstransitTransportThreadAlertNative native
)

Implementation

static MasstransitTransportThreadAlert fromNative(
    MasstransitTransportThreadAlertNative native) {
  return MasstransitTransportThreadAlert(
      text: to_platform.toPlatformString(native.text),
      closed: MasstransitTransportThreadAlertClosedImpl.fromPointer(
          native.closed),
      closedUntil: MasstransitTransportThreadAlertClosedUntilImpl.fromPointer(
          native.closedUntil),
      lastTrip: MasstransitTransportThreadAlertLastTripImpl.fromPointer(
          native.lastTrip));
}