toJson method
Implementation
Map<String, Object?> toJson() {
var type = this.type;
var description = this.description;
var descriptionKey = this.descriptionKey;
var activityDescription = this.activityDescription;
var activityDescriptionKey = this.activityDescriptionKey;
var emailDescription = this.emailDescription;
var emailDescriptionKey = this.emailDescriptionKey;
var actor = this.actor;
var generator = this.generator;
var cause = this.cause;
var extraData = this.extraData;
final json = <String, Object?>{};
if (type != null) {
json[r'type'] = type;
}
if (description != null) {
json[r'description'] = description;
}
if (descriptionKey != null) {
json[r'descriptionKey'] = descriptionKey;
}
if (activityDescription != null) {
json[r'activityDescription'] = activityDescription;
}
if (activityDescriptionKey != null) {
json[r'activityDescriptionKey'] = activityDescriptionKey;
}
if (emailDescription != null) {
json[r'emailDescription'] = emailDescription;
}
if (emailDescriptionKey != null) {
json[r'emailDescriptionKey'] = emailDescriptionKey;
}
if (actor != null) {
json[r'actor'] = actor;
}
if (generator != null) {
json[r'generator'] = generator;
}
if (cause != null) {
json[r'cause'] = cause;
}
if (extraData != null) {
json[r'extraData'] = extraData;
}
return json;
}