EmbedContentRequest_EmbedContentConfig.fromJson constructor
EmbedContentRequest_EmbedContentConfig.fromJson(
- Object? j
Implementation
factory EmbedContentRequest_EmbedContentConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return EmbedContentRequest_EmbedContentConfig(
title: switch (json['title']) {
null => null,
Object $1 => decodeString($1),
},
taskType: switch (json['taskType']) {
null => null,
Object $1 => EmbedContentRequest_EmbeddingTaskType.fromJson($1),
},
autoTruncate: switch (json['autoTruncate']) {
null => null,
Object $1 => decodeBool($1),
},
outputDimensionality: switch (json['outputDimensionality']) {
null => null,
Object $1 => decodeInt($1),
},
documentOcr: switch (json['documentOcr']) {
null => null,
Object $1 => decodeBool($1),
},
audioTrackExtraction: switch (json['audioTrackExtraction']) {
null => null,
Object $1 => decodeBool($1),
},
);
}