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