toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.agent != null) {
    json[r'agent'] = this.agent;
  } else {
    json[r'agent'] = null;
  }
  if (this.endedAt != null) {
    json[r'endedAt'] = this.endedAt;
  } else {
    json[r'endedAt'] = null;
  }
  if (this.model != null) {
    json[r'model'] = this.model;
  } else {
    json[r'model'] = null;
  }
  if (this.org != null) {
    json[r'org'] = this.org;
  } else {
    json[r'org'] = null;
  }
  if (this.project != null) {
    json[r'project'] = this.project;
  } else {
    json[r'project'] = null;
  }
  if (this.repo != null) {
    json[r'repo'] = this.repo;
  } else {
    json[r'repo'] = null;
  }
  if (this.session != null) {
    json[r'session'] = this.session;
  } else {
    json[r'session'] = 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.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
    json[r'turns'] = this.turns;
  if (this.verify != null) {
    json[r'verify'] = this.verify;
  } else {
    json[r'verify'] = null;
  }
  return json;
}