mapTriggers method

List<GeofenceTrigger> mapTriggers(
  1. List input
)

Implementation

List<GeofenceTrigger> mapTriggers(List<dynamic> input) {
  return input.map((triggerMap) {
    final action = triggerMap["action"];
    return GeofenceTrigger(
        id: triggerMap["id"] as String,
        type: triggerMap["type"] as String,
        loiteringDelay: triggerMap["loiteringDelay"] as int,
        action: action == null ? null : Map<String, dynamic>.from(action));
  }).toList();
}