toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.systemPrompt != null) {
json[r'systemPrompt'] = this.systemPrompt;
} else {
json[r'systemPrompt'] = null;
}
json[r'tools'] = this.tools;
if (this.icon != null) {
json[r'icon'] = this.icon;
} else {
json[r'icon'] = null;
}
if (this.color != null) {
json[r'color'] = this.color;
} else {
json[r'color'] = null;
}
json[r'metadata'] = this.metadata;
return json;
}