toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
  if (this.context != null) {
    json[r'context'] = this.context;
  } else {
    json[r'context'] = null;
  }
  if (this.cwd != null) {
    json[r'cwd'] = this.cwd;
  } else {
    json[r'cwd'] = null;
  }
  if (this.sessionId != null) {
    json[r'session_id'] = this.sessionId;
  } else {
    json[r'session_id'] = null;
  }
  if (this.pinned != null) {
    json[r'pinned'] = this.pinned;
  } else {
    json[r'pinned'] = null;
  }
  return json;
}