toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'status'] = this.status;
if (this.comment != null) {
json[r'comment'] = this.comment;
} else {
json[r'comment'] = null;
}
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
json[r'moduleData'] = this.moduleData;
if (this.reason != null) {
json[r'reason'] = this.reason;
} else {
json[r'reason'] = null;
}
if (this.code != null) {
json[r'code'] = this.code;
} else {
json[r'code'] = null;
}
if (this.secondaryCode != null) {
json[r'secondaryCode'] = this.secondaryCode;
} else {
json[r'secondaryCode'] = null;
}
if (this.bannedUntil != null) {
json[r'bannedUntil'] = this.bannedUntil;
} else {
json[r'bannedUntil'] = null;
}
if (this.maxCharacterLength != null) {
json[r'maxCharacterLength'] = this.maxCharacterLength;
} else {
json[r'maxCharacterLength'] = null;
}
if (this.translatedError != null) {
json[r'translatedError'] = this.translatedError;
} else {
json[r'translatedError'] = null;
}
if (this.customConfig != null) {
json[r'customConfig'] = this.customConfig;
} else {
json[r'customConfig'] = null;
}
return json;
}