ImportRagFilesResponse.fromJson constructor
ImportRagFilesResponse.fromJson(
- Object? j
Implementation
factory ImportRagFilesResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ImportRagFilesResponse(
partialFailuresGcsPath: switch (json['partialFailuresGcsPath']) {
null => null,
Object $1 => decodeString($1),
},
partialFailuresBigqueryTable:
switch (json['partialFailuresBigqueryTable']) {
null => null,
Object $1 => decodeString($1),
},
importedRagFilesCount: switch (json['importedRagFilesCount']) {
null => 0,
Object $1 => decodeInt64($1),
},
failedRagFilesCount: switch (json['failedRagFilesCount']) {
null => 0,
Object $1 => decodeInt64($1),
},
skippedRagFilesCount: switch (json['skippedRagFilesCount']) {
null => 0,
Object $1 => decodeInt64($1),
},
);
}