This repository was archived by the owner on Nov 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDrawing.js
More file actions
104 lines (85 loc) · 2.92 KB
/
Copy pathDrawing.js
File metadata and controls
104 lines (85 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/**
* BIMData API
* BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints.
*
* The version of the OpenAPI document: v1 (v1)
* Contact: support@bimdata.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import User from './User';
/**
* The Drawing model module.
* @module model/Drawing
* @version 0.0.0
*/
class Drawing {
/**
* Constructs a new <code>Drawing</code>.
* @alias module:model/Drawing
* @param id {Number}
* @param content {String}
* @param creator {module:model/User}
* @param createdAt {Date}
*/
constructor(id, content, creator, createdAt) {
Drawing.initialize(this, id, content, creator, createdAt);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, id, content, creator, createdAt) {
obj['id'] = id;
obj['content'] = content;
obj['creator'] = creator;
obj['created_at'] = createdAt;
}
/**
* Constructs a <code>Drawing</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Drawing} obj Optional instance to populate.
* @return {module:model/Drawing} The populated <code>Drawing</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Drawing();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('content')) {
obj['content'] = ApiClient.convertToType(data['content'], 'String');
}
if (data.hasOwnProperty('creator')) {
obj['creator'] = ApiClient.convertToType(data['creator'], User);
}
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
}
}
return obj;
}
}
/**
* @member {Number} id
*/
Drawing.prototype['id'] = undefined;
/**
* @member {String} content
*/
Drawing.prototype['content'] = undefined;
/**
* @member {module:model/User} creator
*/
Drawing.prototype['creator'] = undefined;
/**
* @member {Date} created_at
*/
Drawing.prototype['created_at'] = undefined;
export default Drawing;