Document constructor
Document({})
Implementation
factory Document({
$core.String? name,
$core.String? displayName,
$core.String? mimeType,
$core.Iterable<Document_KnowledgeType>? knowledgeTypes,
$core.String? contentUri,
$core.Map<$core.String, $core.String>? metadata,
$core.List<$core.int>? rawContent,
$core.bool? enableAutoReload,
Document_ReloadStatus? latestReloadStatus,
}) {
final _result = create();
if (name != null) {
_result.name = name;
}
if (displayName != null) {
_result.displayName = displayName;
}
if (mimeType != null) {
_result.mimeType = mimeType;
}
if (knowledgeTypes != null) {
_result.knowledgeTypes.addAll(knowledgeTypes);
}
if (contentUri != null) {
_result.contentUri = contentUri;
}
if (metadata != null) {
_result.metadata.addAll(metadata);
}
if (rawContent != null) {
_result.rawContent = rawContent;
}
if (enableAutoReload != null) {
_result.enableAutoReload = enableAutoReload;
}
if (latestReloadStatus != null) {
_result.latestReloadStatus = latestReloadStatus;
}
return _result;
}