geofences static method

Future<List<UGeofence>> geofences()

Implementation

static Future<List<UGeofence>> geofences() async {
  final List<Object?>? raw = kIsWeb ? null : await _call<List<Object?>>("geofences");
  return <UGeofence>[
    ...?raw?.whereType<Map<Object?, Object?>>().map(UGeofence.fromMap),
    ..._soft.values,
  ];
}