CodeInterpreterStepCall.fromJson constructor
Creates a CodeInterpreterStepCall from JSON.
Implementation
factory CodeInterpreterStepCall.fromJson(Map<String, dynamic> json) {
final ci = json['code_interpreter'] as Map<String, dynamic>;
return CodeInterpreterStepCall(
id: json['id'] as String,
input: ci['input'] as String,
outputs: (ci['outputs'] as List<dynamic>)
.map((e) => CodeInterpreterOutput.fromJson(e as Map<String, dynamic>))
.toList(),
);
}