UGeofence.fromMap constructor

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

Reads it from the native map.

Implementation

factory UGeofence.fromMap(Map<Object?, Object?> m) => UGeofence(
  id: "${m["id"]}",
  latitude: (m["latitude"]! as num).toDouble(),
  longitude: (m["longitude"]! as num).toDouble(),
  radius: (m["radius"] as num?)?.toDouble() ?? 100,
  onEnter: m["onEnter"] != false,
  onExit: m["onExit"] != false,
  notificationTitle: m["notificationTitle"] as String?,
  notificationText: m["notificationText"] as String?,
);