GenerateTextResponse.fromJson constructor
Implementation
factory GenerateTextResponse.fromJson(Map<String, dynamic> json) {
return GenerateTextResponse(
candidates:
decodeListMessage(json['candidates'], TextCompletion.fromJson) ?? [],
filters: decodeListMessage(json['filters'], ContentFilter.fromJson) ?? [],
safetyFeedback:
decodeListMessage(json['safetyFeedback'], SafetyFeedback.fromJson) ??
[],
);
}