generateContentResponseToJson function

String generateContentResponseToJson(
  1. GenerateContentResponse data
)

Converts a GenerateContentResponse object to a JSON string.

Implementation

String generateContentResponseToJson(GenerateContentResponse data) =>
    json.encode(data.toJson());