toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'aggId'] = this.aggId;
if (this.questionId != null) {
json[r'questionId'] = this.questionId;
} else {
json[r'questionId'] = null;
}
json[r'questionIds'] = this.questionIds;
if (this.urlId != null) {
json[r'urlId'] = this.urlId;
} else {
json[r'urlId'] = null;
}
if (this.timeBucket != null) {
json[r'timeBucket'] = this.timeBucket;
} else {
json[r'timeBucket'] = null;
}
if (this.startDate != null) {
json[r'startDate'] = this.startDate!.toUtc().toIso8601String();
} else {
json[r'startDate'] = null;
}
return json;
}