createEvent function
Implementation
Event createEvent(Map map) {
return Event(
id: map["identifier"].toString(),
name: map["name"],
customFields: Map<String, dynamic>.from(map["customFields"]),
trigger: createCircleArea(map["trigger"]));
}