ImageGenerationResponse constructor

ImageGenerationResponse({
  1. List<AIContent>? contents,
  2. Object? rawRepresentation,
  3. UsageDetails? usage,
})

Creates a new ImageGenerationResponse.

Implementation

ImageGenerationResponse({
  List<AIContent>? contents,
  this.rawRepresentation,
  this.usage,
}) : contents = contents ?? [];