# elementor/3.8.0-beta1/app/modules/kit-library/assets/js/models/document.js

Elementor Website Builder – more than just a page builder, version 3.8.0-beta1. 25 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.8.0-beta1/code/app/modules/kit-library/assets/js/models/document.js
- Raw: https://pluginprobe.com/plugins/elementor/3.8.0-beta1/raw/app/modules/kit-library/assets/js/models/document.js
- Modified: 2022-09-19T16:26:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/3.8.0-beta1/code/app/modules/kit-library/assets/js/models/document.js#L10-L20`.

```javascript
import BaseModel from './base-model';

export default class Document extends BaseModel {
	id = '';
	title = '';
	documentType = '';
	thumbnailUrl = '';
	previewUrl = '';

	/**
	 * Create a tag from server response
	 *
	 * @param {Document} document
	 */
	static createFromResponse( document ) {
		return new Document().init( {
			id: document.id,
			title: document.title,
			documentType: document.doc_type,
			thumbnailUrl: document.thumbnail_url,
			previewUrl: document.preview_url,
		} );
	}
}

```
