toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
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.sentEmailId != null) {
json[r'sentEmailId'] = this.sentEmailId;
} else {
json[r'sentEmailId'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
json[r'recipient'] = this.recipient;
if (this.action != null) {
json[r'action'] = this.action;
} else {
json[r'action'] = null;
}
return json;
}