ChatResponse constructor

ChatResponse({
  1. String? text,
  2. bool? done,
  3. String? error,
})

Implementation

factory ChatResponse({
  $core.String? text,
  $core.bool? done,
  $core.String? error,
}) {
  final result = create();
  if (text != null) result.text = text;
  if (done != null) result.done = done;
  if (error != null) result.error = error;
  return result;
}