@@ -7,9 +7,10 @@ class Impression {
77 final String ? appliedRule;
88 final num ? changeNumber;
99 final Map <String , dynamic > attributes;
10+ final Map <String , dynamic > properties;
1011
1112 Impression (this .key, this .bucketingKey, this .split, this .treatment, this .time,
12- this .appliedRule, this .changeNumber, this .attributes);
13+ this .appliedRule, this .changeNumber, this .attributes, this .properties );
1314
1415 static Impression fromMap (Map <dynamic , dynamic > map) {
1516 return Impression (
@@ -20,11 +21,12 @@ class Impression {
2021 map['time' ] as num ? ,
2122 map['appliedRule' ] as String ? ,
2223 map['changeNumber' ] as num ? ,
23- Map <String , dynamic >.from (map['attributes' ] as Map ));
24+ Map <String , dynamic >.from (map['attributes' ] as Map ),
25+ Map <String , dynamic >.from (map['properties' ] as Map ));
2426 }
2527
2628 @override
2729 String toString () {
28- return 'Impression = {"key":$key , "bucketingKey":$bucketingKey , "split":$split , "treatment":$treatment , "time":$time , "appliedRule": $appliedRule , "changeNumber":$changeNumber , "attributes":$attributes }' ;
30+ return 'Impression = {"key":$key , "bucketingKey":$bucketingKey , "split":$split , "treatment":$treatment , "time":$time , "appliedRule": $appliedRule , "changeNumber":$changeNumber , "attributes":$attributes , "properties":$ properties }' ;
2931 }
3032}
0 commit comments