toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.anonymousId != null) {
json[r'anonymousId'] = this.anonymousId;
} else {
json[r'anonymousId'] = null;
}
if (this.channel != null) {
json[r'channel'] = this.channel;
} else {
json[r'channel'] = null;
}
if (this.clip != null) {
json[r'clip'] = this.clip;
} else {
json[r'clip'] = null;
}
if (this.currency != null) {
json[r'currency'] = this.currency;
} else {
json[r'currency'] = null;
}
if (this.distinctId != null) {
json[r'distinctId'] = this.distinctId;
} else {
json[r'distinctId'] = null;
}
if (this.environment != null) {
json[r'environment'] = this.environment;
} else {
json[r'environment'] = null;
}
if (this.error != null) {
json[r'error'] = this.error;
} else {
json[r'error'] = null;
}
if (this.event != null) {
json[r'event'] = this.event;
} else {
json[r'event'] = null;
}
if (this.groupId != null) {
json[r'groupId'] = this.groupId;
} else {
json[r'groupId'] = null;
}
if (this.groupType != null) {
json[r'groupType'] = this.groupType;
} else {
json[r'groupType'] = null;
}
if (this.kind != null) {
json[r'kind'] = this.kind;
} else {
json[r'kind'] = null;
}
if (this.level != null) {
json[r'level'] = this.level;
} else {
json[r'level'] = null;
}
if (this.library_ != null) {
json[r'library'] = this.library_;
} else {
json[r'library'] = null;
}
if (this.libraryVersion != null) {
json[r'libraryVersion'] = this.libraryVersion;
} else {
json[r'libraryVersion'] = null;
}
if (this.log != null) {
json[r'log'] = this.log;
} else {
json[r'log'] = null;
}
if (this.messageId != null) {
json[r'messageId'] = this.messageId;
} else {
json[r'messageId'] = null;
}
if (this.metric != null) {
json[r'metric'] = this.metric;
} else {
json[r'metric'] = null;
}
if (this.path != null) {
json[r'path'] = this.path;
} else {
json[r'path'] = null;
}
if (this.personId != null) {
json[r'personId'] = this.personId;
} else {
json[r'personId'] = null;
}
if (this.product != null) {
json[r'product'] = this.product;
} else {
json[r'product'] = null;
}
if (this.productId != null) {
json[r'productId'] = this.productId;
} else {
json[r'productId'] = null;
}
json[r'properties'] = this.properties;
if (this.quantity != null) {
json[r'quantity'] = this.quantity;
} else {
json[r'quantity'] = null;
}
if (this.refCode != null) {
json[r'refCode'] = this.refCode;
} else {
json[r'refCode'] = null;
}
if (this.referrer != null) {
json[r'referrer'] = this.referrer;
} else {
json[r'referrer'] = null;
}
if (this.release != null) {
json[r'release'] = this.release;
} else {
json[r'release'] = null;
}
if (this.resource != null) {
json[r'resource'] = this.resource;
} else {
json[r'resource'] = null;
}
if (this.revenue != null) {
json[r'revenue'] = this.revenue;
} else {
json[r'revenue'] = null;
}
if (this.service != null) {
json[r'service'] = this.service;
} else {
json[r'service'] = null;
}
if (this.sessionId != null) {
json[r'sessionId'] = this.sessionId;
} else {
json[r'sessionId'] = null;
}
if (this.signupWeek != null) {
json[r'signupWeek'] = this.signupWeek;
} else {
json[r'signupWeek'] = null;
}
if (this.site != null) {
json[r'site'] = this.site;
} else {
json[r'site'] = null;
}
if (this.span != null) {
json[r'span'] = this.span;
} else {
json[r'span'] = null;
}
if (this.spanId != null) {
json[r'spanId'] = this.spanId;
} else {
json[r'spanId'] = null;
}
if (this.timestamp != null) {
json[r'timestamp'] = this.timestamp;
} else {
json[r'timestamp'] = null;
}
if (this.traceId != null) {
json[r'traceId'] = this.traceId;
} else {
json[r'traceId'] = null;
}
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.url != null) {
json[r'url'] = this.url;
} else {
json[r'url'] = null;
}
if (this.utm != null) {
json[r'utm'] = this.utm;
} else {
json[r'utm'] = null;
}
return json;
}