RagEmbeddingModelConfig_VertexPredictionEndpoint.fromJson constructor
RagEmbeddingModelConfig_VertexPredictionEndpoint.fromJson(
- Object? j
Implementation
factory RagEmbeddingModelConfig_VertexPredictionEndpoint.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RagEmbeddingModelConfig_VertexPredictionEndpoint(
endpoint: switch (json['endpoint']) {
null => '',
Object $1 => decodeString($1),
},
model: switch (json['model']) {
null => '',
Object $1 => decodeString($1),
},
modelVersionId: switch (json['modelVersionId']) {
null => '',
Object $1 => decodeString($1),
},
);
}