toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var activityDescription = this.activityDescription;
  var activityDescriptionKey = this.activityDescriptionKey;
  var actor = this.actor;
  var cause = this.cause;
  var description = this.description;
  var descriptionKey = this.descriptionKey;
  var emailDescription = this.emailDescription;
  var emailDescriptionKey = this.emailDescriptionKey;
  var extraData = this.extraData;
  var generator = this.generator;
  var type = this.type;

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