toJson method

String toJson()

Implementation

String toJson() {
  return json.encode({
    'size': size,
    'prompt': prompt,
    'num_images': numImages,
    'response_format': responseFormat,
  });
}