toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (citationMetadata != null) 'citationMetadata': citationMetadata!,
      if (content != null) 'content': content!,
      if (finishMessage != null) 'finishMessage': finishMessage!,
      if (finishReason != null) 'finishReason': finishReason!,
      if (groundingMetadata != null) 'groundingMetadata': groundingMetadata!,
      if (index != null) 'index': index!,
      if (safetyRatings != null) 'safetyRatings': safetyRatings!,
    };