GeofenceEvent constructor

GeofenceEvent(
  1. Map params
)

Implementation

GeofenceEvent(Map params) {
  // Remove geofence from location to prevent recursive creation of GeofenceEvent.
  Map locationData = params['location'];
  locationData.remove("geofence");

  this.identifier = params['identifier'];
  this.action = params['action'];
  this.timestamp = params['timestamp'];
  this.location = new Location(locationData);
  this.extras = params['extras'];
}