EventObject class

EventObject holds the structure of the payload the will be sent to firebase analytics all fields are nullable to allow us to extend this class without the need to create another object class. Future attributes should be added as fields in this class

Annotations
  • @freezed

Constructors

EventObject({@JsonKey.new(name: 'first_name') String? firstName, @JsonKey.new(name: 'last_name') String? lastName, @JsonKey.new(name: 'uid') String? uid, @JsonKey.new(name: 'route') String? route, @JsonKey.new(name: 'primary_phonenumber') String? primaryPhoneNumber, @JsonKey.new(name: 'timestamp') DateTime? timestamp, @JsonKey.new(name: 'flavour') String? flavour, @JsonKey.new(name: 'app_version', defaultValue: APPVERSION) String? appVersion})
factory
EventObject.fromJson(Map<String, dynamic> json)
factory

Properties

appVersion String?
no setterinherited
copyWith → $EventObjectCopyWith<EventObject>
no setterinherited
firstName String?
no setterinherited
flavour String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
lastName String?
no setterinherited
primaryPhoneNumber String?
no setterinherited
route String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime?
no setterinherited
uid String?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited