toJson method
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;
}
json[r'metadata'] = this.metadata;
return json;
}