toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'prompt'] = this.prompt;
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
json[r'updated_at'] = this.updatedAt.toUtc().toIso8601String();
json[r'platform'] = this.platform;
if (this.mentor != null) {
json[r'mentor'] = this.mentor;
} else {
json[r'mentor'] = null;
}
json[r'is_system'] = this.isSystem;
if (this.category != null) {
json[r'category'] = this.category;
} else {
json[r'category'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.metadata != null) {
json[r'metadata'] = this.metadata;
} else {
json[r'metadata'] = null;
}
return json;
}