InteractionGoal.fromMap constructor
InteractionGoal.fromMap(
- dynamic map
Creates a new InteractionGoal
instance from a map.
Implementation
factory InteractionGoal.fromMap(dynamic map) {
final String type = map?['type'] ?? "none";
final List<String> elementIds = List<String>.from(map?['elementIds'] ?? []);
return InteractionGoal(type: type, elementIds: elementIds);
}