StructuredOutputStreamEvent constructor
StructuredOutputStreamEvent({
- Int64? seq,
- Int64? timestampUs,
- String? requestId,
- StructuredOutputStreamEventKind? kind,
- String? token,
- String? partialJson,
- StructuredOutputValidation? validation,
- StructuredOutputResult? result,
- String? errorMessage,
- int? errorCode,
Implementation
factory StructuredOutputStreamEvent({
$fixnum.Int64? seq,
$fixnum.Int64? timestampUs,
$core.String? requestId,
StructuredOutputStreamEventKind? kind,
$core.String? token,
$core.String? partialJson,
StructuredOutputValidation? validation,
StructuredOutputResult? result,
$core.String? errorMessage,
$core.int? errorCode,
}) {
final result$ = create();
if (seq != null) result$.seq = seq;
if (timestampUs != null) result$.timestampUs = timestampUs;
if (requestId != null) result$.requestId = requestId;
if (kind != null) result$.kind = kind;
if (token != null) result$.token = token;
if (partialJson != null) result$.partialJson = partialJson;
if (validation != null) result$.validation = validation;
if (result != null) result$.result = result;
if (errorMessage != null) result$.errorMessage = errorMessage;
if (errorCode != null) result$.errorCode = errorCode;
return result$;
}