toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (interactionTime != null) 'interactionTime': interactionTime!,
if (principal != null) 'principal': principal!,
if (type != null) 'type': type!,
};