toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.schemaVersion != null) {
json[r'schemaVersion'] = this.schemaVersion;
} else {
json[r'schemaVersion'] = null;
}
if (this.window != null) {
json[r'window'] = this.window;
} else {
json[r'window'] = null;
}
if (this.generatedAt != null) {
json[r'generatedAt'] = this.generatedAt!.toUtc().toIso8601String();
} else {
json[r'generatedAt'] = null;
}
if (this.timezone != null) {
json[r'timezone'] = this.timezone;
} else {
json[r'timezone'] = null;
}
if (this.totals != null) {
json[r'totals'] = this.totals;
} else {
json[r'totals'] = null;
}
if (this.rates != null) {
json[r'rates'] = this.rates;
} else {
json[r'rates'] = null;
}
json[r'topReasons'] = this.topReasons;
json[r'topDomains'] = this.topDomains;
return json;
}