toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.distinctId != null) {
json[r'distinctId'] = this.distinctId;
} else {
json[r'distinctId'] = null;
}
if (this.event != null) {
json[r'event'] = this.event;
} else {
json[r'event'] = null;
}
json[r'properties'] = this.properties;
if (this.time != null) {
json[r'time'] = this.time;
} else {
json[r'time'] = null;
}
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
json[r'batch'] = this.batch;
json[r'events'] = this.events;
if (this.distinctIdLegacy != null) {
json[r'distinct_id'] = this.distinctIdLegacy;
} else {
json[r'distinct_id'] = null;
}
if (this.timestamp != null) {
json[r'timestamp'] = this.timestamp;
} else {
json[r'timestamp'] = null;
}
if (this.uuid != null) {
json[r'uuid'] = this.uuid;
} else {
json[r'uuid'] = null;
}
return json;
}