StructuredOutputStreamEvent constructor

StructuredOutputStreamEvent({
  1. Int64? seq,
  2. Int64? timestampUs,
  3. String? requestId,
  4. StructuredOutputStreamEventKind? kind,
  5. String? token,
  6. String? partialJson,
  7. StructuredOutputValidation? validation,
  8. StructuredOutputResult? result,
  9. String? errorMessage,
  10. 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$;
}