toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.message != null) {
json[r'message'] = this.message;
} else {
json[r'message'] = null;
}
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.userId != null) {
json[r'userId'] = this.userId;
} else {
json[r'userId'] = null;
}
if (this.emailId != null) {
json[r'emailId'] = this.emailId;
} else {
json[r'emailId'] = null;
}
if (this.inboxId != null) {
json[r'inboxId'] = this.inboxId;
} else {
json[r'inboxId'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
if (this.forwarderId != null) {
json[r'forwarderId'] = this.forwarderId;
} else {
json[r'forwarderId'] = null;
}
return json;
}