toJson method

Implementation

@override
Object toJson(object) {
  if(object is GptCodeInterpreterLogOutput) {
    return object.toJson();
  }

  if(object is GptCodeInterpreterImageOutput) {
    return object.toJson();
  }

  throw UnimplementedError();
}