toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.createdAt != null) {
json[r'createdAt'] = this.createdAt;
} else {
json[r'createdAt'] = null;
}
if (this.currency != null) {
json[r'currency'] = this.currency;
} else {
json[r'currency'] = null;
}
if (this.enforce != null) {
json[r'enforce'] = this.enforce;
} else {
json[r'enforce'] = null;
}
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.over != null) {
json[r'over'] = this.over;
} else {
json[r'over'] = null;
}
if (this.period != null) {
json[r'period'] = this.period;
} else {
json[r'period'] = null;
}
if (this.periodSpentCents != null) {
json[r'periodSpentCents'] = this.periodSpentCents;
} else {
json[r'periodSpentCents'] = null;
}
if (this.project != null) {
json[r'project'] = this.project;
} else {
json[r'project'] = null;
}
if (this.rateLimitRpm != null) {
json[r'rateLimitRpm'] = this.rateLimitRpm;
} else {
json[r'rateLimitRpm'] = null;
}
if (this.resetsAt != null) {
json[r'resetsAt'] = this.resetsAt;
} else {
json[r'resetsAt'] = null;
}
if (this.service != null) {
json[r'service'] = this.service;
} else {
json[r'service'] = null;
}
if (this.softPct != null) {
json[r'softPct'] = this.softPct;
} else {
json[r'softPct'] = null;
}
if (this.threshold != null) {
json[r'threshold'] = this.threshold;
} else {
json[r'threshold'] = null;
}
if (this.title != null) {
json[r'title'] = this.title;
} else {
json[r'title'] = null;
}
if (this.triggeredAt != null) {
json[r'triggeredAt'] = this.triggeredAt;
} else {
json[r'triggeredAt'] = null;
}
if (this.updatedAt != null) {
json[r'updatedAt'] = this.updatedAt;
} else {
json[r'updatedAt'] = null;
}
if (this.userId != null) {
json[r'userId'] = this.userId;
} else {
json[r'userId'] = null;
}
if (this.warn != null) {
json[r'warn'] = this.warn;
} else {
json[r'warn'] = null;
}
return json;
}