BatchCreateRagDataSchemasResponse.fromJson constructor
BatchCreateRagDataSchemasResponse.fromJson(
- Object? j
Implementation
factory BatchCreateRagDataSchemasResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return BatchCreateRagDataSchemasResponse(
ragDataSchemas: switch (json['ragDataSchemas']) {
null => [],
List<Object?> $1 => [for (final i in $1) RagDataSchema.fromJson(i)],
_ => throw const FormatException('"ragDataSchemas" is not a list'),
},
);
}