toJson method

  1. @override
Object toJson(
  1. AGptRunStepDetail object
)

Implementation

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

  if(object is GptRunToolCallsStepDetail) {
    return object.toJson();
  }
  throw UnimplementedError();
}