UGeofenceEvent.fromMap constructor

UGeofenceEvent.fromMap(
  1. Map<Object?, Object?> m
)

Reads it from the native map.

Implementation

factory UGeofenceEvent.fromMap(Map<Object?, Object?> m) => UGeofenceEvent(
  id: "${m["id"]}",
  transition: m["transition"] == "exit" ? UGeofenceTransition.exit : UGeofenceTransition.enter,
  time: DateTime.fromMillisecondsSinceEpoch((m["time"] as num?)?.toInt() ?? DateTime.now().millisecondsSinceEpoch),
);