CodeInterpreterContainer.fromJson constructor
CodeInterpreterContainer.fromJson(
- dynamic raw
Implementation
factory CodeInterpreterContainer.fromJson(dynamic raw) {
if (raw is String) return CodeInterpreterContainerId(raw);
// expect {"type":"auto", "file_ids":[...]}
return CodeInterpreterContainerAuto(
fileIds: List<String>.from((raw as Map)['file_ids'] ?? const []),
);
}