toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
if (_$data.containsKey('userId')) {
final l$userId = userId;
result$data['userId'] = l$userId;
}
if (_$data.containsKey('reference')) {
final l$reference = reference;
result$data['reference'] = l$reference;
}
if (_$data.containsKey('identifier')) {
final l$identifier = identifier;
result$data['identifier'] = l$identifier;
}
final l$target = target;
result$data['target'] = l$target.toJson();
if (_$data.containsKey('source')) {
final l$source = source;
result$data['source'] =
l$source == null ? null : toJson$Enum$UserEventsSourceEnum(l$source);
}
return result$data;
}