toJson method

Map<String, dynamic> toJson()

Generates a map representing the Interaction.

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> map = {};
  map["elementId"] = elementId;
  map["interactedAt"] = interactedAt.millisecondsSinceEpoch;
  return map;
}