BatchEmbedContentsRequest.fromJson constructor

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

Implementation

factory BatchEmbedContentsRequest.fromJson(Map<String, dynamic> json) {
  return BatchEmbedContentsRequest(
    model: json['model'] ?? '',
    requests:
        decodeListMessage(json['requests'], EmbedContentRequest.fromJson) ??
        [],
  );
}