toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.runId != null) {
    json[r'runId'] = this.runId;
  } else {
    json[r'runId'] = null;
  }
  if (this.sessionUrl != null) {
    json[r'sessionUrl'] = this.sessionUrl;
  } else {
    json[r'sessionUrl'] = 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.surface != null) {
    json[r'surface'] = this.surface;
  } else {
    json[r'surface'] = null;
  }
  if (this.task != null) {
    json[r'task'] = this.task;
  } else {
    json[r'task'] = null;
  }
  return json;
}