toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.account != null) {
    json[r'account'] = this.account;
  } else {
    json[r'account'] = null;
  }
  if (this.actor != null) {
    json[r'actor'] = this.actor;
  } else {
    json[r'actor'] = null;
  }
  if (this.agent != null) {
    json[r'agent'] = this.agent;
  } else {
    json[r'agent'] = null;
  }
  if (this.children != null) {
    json[r'children'] = this.children;
  } else {
    json[r'children'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = null;
  }
  if (this.cwd != null) {
    json[r'cwd'] = this.cwd;
  } else {
    json[r'cwd'] = null;
  }
  if (this.endedAt != null) {
    json[r'endedAt'] = this.endedAt;
  } else {
    json[r'endedAt'] = null;
  }
  if (this.events != null) {
    json[r'events'] = this.events;
  } else {
    json[r'events'] = null;
  }
  if (this.host != null) {
    json[r'host'] = this.host;
  } else {
    json[r'host'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.lastEvent != null) {
    json[r'lastEvent'] = this.lastEvent;
  } else {
    json[r'lastEvent'] = null;
  }
  if (this.org != null) {
    json[r'org'] = this.org;
  } else {
    json[r'org'] = null;
  }
  if (this.parentSessionId != null) {
    json[r'parentSessionId'] = this.parentSessionId;
  } else {
    json[r'parentSessionId'] = null;
  }
  if (this.progress != null) {
    json[r'progress'] = this.progress;
  } else {
    json[r'progress'] = null;
  }
  if (this.project != null) {
    json[r'project'] = this.project;
  } else {
    json[r'project'] = null;
  }
  if (this.provider != null) {
    json[r'provider'] = this.provider;
  } else {
    json[r'provider'] = null;
  }
  if (this.published != null) {
    json[r'published'] = this.published;
  } else {
    json[r'published'] = null;
  }
  if (this.repo != null) {
    json[r'repo'] = this.repo;
  } else {
    json[r'repo'] = null;
  }
  if (this.room != null) {
    json[r'room'] = this.room;
  } else {
    json[r'room'] = null;
  }
  if (this.rootSessionId != null) {
    json[r'rootSessionId'] = this.rootSessionId;
  } else {
    json[r'rootSessionId'] = null;
  }
  if (this.startedAt != null) {
    json[r'startedAt'] = this.startedAt;
  } else {
    json[r'startedAt'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.target != null) {
    json[r'target'] = this.target;
  } else {
    json[r'target'] = null;
  }
  if (this.taskRunId != null) {
    json[r'taskRunId'] = this.taskRunId;
  } else {
    json[r'taskRunId'] = null;
  }
  if (this.taskWorkflowId != null) {
    json[r'taskWorkflowId'] = this.taskWorkflowId;
  } else {
    json[r'taskWorkflowId'] = null;
  }
  if (this.terminal != null) {
    json[r'terminal'] = this.terminal;
  } else {
    json[r'terminal'] = null;
  }
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt;
  } else {
    json[r'updatedAt'] = null;
  }
  return json;
}