toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'_id'] = this.id;
json[r'tenantId'] = this.tenantId;
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.userId != null) {
json[r'userId'] = this.userId;
} else {
json[r'userId'] = null;
}
json[r'acceptedInvite'] = this.acceptedInvite;
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
json[r'markReviewedCount'] = this.markReviewedCount;
json[r'deletedCount'] = this.deletedCount;
json[r'markedSpamCount'] = this.markedSpamCount;
json[r'markedNotSpamCount'] = this.markedNotSpamCount;
json[r'approvedCount'] = this.approvedCount;
json[r'unApprovedCount'] = this.unApprovedCount;
json[r'editedCount'] = this.editedCount;
json[r'bannedCount'] = this.bannedCount;
json[r'unFlaggedCount'] = this.unFlaggedCount;
if (this.verificationId != null) {
json[r'verificationId'] = this.verificationId;
} else {
json[r'verificationId'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
if (this.moderationGroupIds != null) {
json[r'moderationGroupIds'] = this.moderationGroupIds;
} else {
json[r'moderationGroupIds'] = null;
}
if (this.isEmailSuppressed != null) {
json[r'isEmailSuppressed'] = this.isEmailSuppressed;
} else {
json[r'isEmailSuppressed'] = null;
}
return json;
}