GeminiAIResponseTransporter.fromJson constructor

GeminiAIResponseTransporter.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GeminiAIResponseTransporter.fromJson(Map<String, dynamic> json) {
  return GeminiAIResponseTransporter(
    finishReason: json['finishReason'],
    index: json['index'],
    content: json['content'],
    safetyRatings: json['safetyRatings'],
  );
}