StructuredOutputResult constructor

StructuredOutputResult({
  1. List<int>? parsedJson,
  2. StructuredOutputValidation? validation,
  3. String? rawText,
  4. String? errorMessage,
  5. int? errorCode,
})

Implementation

factory StructuredOutputResult({
  $core.List<$core.int>? parsedJson,
  StructuredOutputValidation? validation,
  $core.String? rawText,
  $core.String? errorMessage,
  $core.int? errorCode,
}) {
  final result = create();
  if (parsedJson != null) result.parsedJson = parsedJson;
  if (validation != null) result.validation = validation;
  if (rawText != null) result.rawText = rawText;
  if (errorMessage != null) result.errorMessage = errorMessage;
  if (errorCode != null) result.errorCode = errorCode;
  return result;
}