ImportDocumentTemplate constructor

ImportDocumentTemplate({
  1. String? mimeType,
  2. Iterable<Document_KnowledgeType>? knowledgeTypes,
  3. Map<String, String>? metadata,
})

Implementation

factory ImportDocumentTemplate({
  $core.String? mimeType,
  $core.Iterable<Document_KnowledgeType>? knowledgeTypes,
  $core.Map<$core.String, $core.String>? metadata,
}) {
  final _result = create();
  if (mimeType != null) {
    _result.mimeType = mimeType;
  }
  if (knowledgeTypes != null) {
    _result.knowledgeTypes.addAll(knowledgeTypes);
  }
  if (metadata != null) {
    _result.metadata.addAll(metadata);
  }
  return _result;
}