toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'name'] = this.name;
  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;
}