EmbedContentResponse.fromJson constructor

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

Implementation

factory EmbedContentResponse.fromJson(Map<String, dynamic> json) {
  return EmbedContentResponse(
    embedding: decode(json['embedding'], ContentEmbedding.fromJson),
  );
}