InteractionGoal.fromMap constructor

InteractionGoal.fromMap(
  1. 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);
}