fromNative static method
Implementation
static ZoneEvent fromNative(ZoneEventNative native, {bool takeOwnership = true}) {
return ZoneEvent(
ZoneEventTypeImpl.fromInt(native.type),
native.locationId,
native.sublocationId,
native.id,
toPlatformString(native.name, takeOwnership: takeOwnership),
toPlatformString(native.alias, takeOwnership: takeOwnership),
);
}