SearchExamplesRequest.fromJson constructor
SearchExamplesRequest.fromJson(
- Object? j
Implementation
factory SearchExamplesRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SearchExamplesRequest(
storedContentsExampleParameters:
switch (json['storedContentsExampleParameters']) {
null => null,
Object $1 => StoredContentsExampleParameters.fromJson($1),
},
exampleStore: switch (json['exampleStore']) {
null => '',
Object $1 => decodeString($1),
},
topK: switch (json['topK']) {
null => 0,
Object $1 => decodeInt64($1),
},
);
}