toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'date'] = this.date;
if (this.apiCalls != null) {
json[r'api_calls'] = this.apiCalls;
} else {
json[r'api_calls'] = null;
}
if (this.emailSends != null) {
json[r'email_sends'] = this.emailSends;
} else {
json[r'email_sends'] = null;
}
if (this.notesCount != null) {
json[r'notes_count'] = this.notesCount;
} else {
json[r'notes_count'] = null;
}
if (this.sheetsCount != null) {
json[r'sheets_count'] = this.sheetsCount;
} else {
json[r'sheets_count'] = null;
}
if (this.slidesCount != null) {
json[r'slides_count'] = this.slidesCount;
} else {
json[r'slides_count'] = null;
}
if (this.filesCount != null) {
json[r'files_count'] = this.filesCount;
} else {
json[r'files_count'] = null;
}
if (this.tasksCount != null) {
json[r'tasks_count'] = this.tasksCount;
} else {
json[r'tasks_count'] = null;
}
return json;
}