toMap method

Map<String, dynamic> toMap()

Return Geofence as Map.

Implementation

Map<String, dynamic> toMap() {
  Map<String, dynamic> params = {};
  params['identifier'] = this.identifier;
  params['radius'] = this.radius;
  params['latitude'] = this.latitude;
  params['longitude'] = this.longitude;
  if (this.notifyOnEntry != null) {
    params['notifyOnEntry'] = this.notifyOnEntry;
  }
  if (this.notifyOnExit != null) {
    params['notifyOnExit'] = this.notifyOnExit;
  }
  if (this.notifyOnDwell != null) {
    params['notifyOnDwell'] = this.notifyOnDwell;
  }
  if (this.loiteringDelay != null) {
    params['loiteringDelay'] = this.loiteringDelay;
  }
  if (this.extras != null) {
    params['extras'] = this.extras;
  }
  if (this.vertices != null) {
    params['vertices'] = this.vertices;
  }
  return params;
}