toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> result = {};
result['model'] = model;
result['role'] = role;
result['content'] = content.toJson();
if (stopReason != null) {
result['stopReason'] = stopReason;
}
return result;
}