@@ -55,7 +55,7 @@ abstract class RawEvent with JSONSerialisable {
55
55
@JsonKey (name: "_metadata" )
56
56
DestinationMetadata ? metadata;
57
57
58
- RawEvent (this .type, {this .anonymousId, this .userId, this .integrations, }); // Patch for Github Issue #152
58
+ RawEvent (this .type, {this .anonymousId, this .userId});
59
59
}
60
60
61
61
@JsonSerializable (explicitToJson: true )
@@ -79,7 +79,7 @@ class TrackEvent extends RawEvent {
79
79
String event;
80
80
Map <String , dynamic >? properties;
81
81
82
- TrackEvent (this .event, {this .properties, Map < String , dynamic > ? integrations, }) : super (EventType .track, integrations : integrations,); // Patch for Github Issue #152
82
+ TrackEvent (this .event, {this .properties}) : super (EventType .track);
83
83
84
84
factory TrackEvent .fromJson (Map <String , dynamic > json) =>
85
85
_$TrackEventFromJson (json);
@@ -90,8 +90,8 @@ class TrackEvent extends RawEvent {
90
90
@JsonSerializable (explicitToJson: true )
91
91
class IdentifyEvent extends RawEvent {
92
92
UserTraits ? traits;
93
- IdentifyEvent ({this .traits, String ? userId, Map < String , dynamic > ? integrations })
94
- : super (EventType .identify, userId: userId, integrations : integrations); // Patch for Github Issue #152
93
+ IdentifyEvent ({this .traits, String ? userId})
94
+ : super (EventType .identify, userId: userId);
95
95
96
96
factory IdentifyEvent .fromJson (Map <String , dynamic > json) =>
97
97
_$IdentifyEventFromJson (json);
@@ -105,7 +105,7 @@ class GroupEvent extends RawEvent {
105
105
String groupId;
106
106
GroupTraits ? traits;
107
107
108
- GroupEvent (this .groupId, {this .traits, Map < String , dynamic > ? integrations }) : super (EventType .group, integrations : integrations); // Patch for Github Issue #152
108
+ GroupEvent (this .groupId, {this .traits}) : super (EventType .group);
109
109
110
110
factory GroupEvent .fromJson (Map <String , dynamic > json) =>
111
111
_$GroupEventFromJson (json);
@@ -117,8 +117,8 @@ class GroupEvent extends RawEvent {
117
117
class AliasEvent extends RawEvent {
118
118
String previousId;
119
119
120
- AliasEvent (this .previousId, {String ? userId, Map < String , dynamic > ? integrations })
121
- : super (EventType .alias, userId: userId, integrations : integrations); // Patch for Github Issue #152
120
+ AliasEvent (this .previousId, {String ? userId})
121
+ : super (EventType .alias, userId: userId);
122
122
123
123
factory AliasEvent .fromJson (Map <String , dynamic > json) =>
124
124
_$AliasEventFromJson (json);
@@ -134,7 +134,7 @@ class ScreenEvent extends RawEvent {
134
134
ScreenEvent (
135
135
this .name, {
136
136
this .properties,
137
- Map < String , dynamic > ? integrations }) : super (EventType .screen, integrations : integrations); // Patch for Github Issue #152
137
+ }) : super (EventType .screen);
138
138
139
139
factory ScreenEvent .fromJson (Map <String , dynamic > json) =>
140
140
_$ScreenEventFromJson (json);
0 commit comments