-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMoveFolderData.js
More file actions
87 lines (67 loc) · 2.59 KB
/
MoveFolderData.js
File metadata and controls
87 lines (67 loc) · 2.59 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
/**
* DocSpring API
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
*
* The version of the OpenAPI document: v1
*
*
* 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';
/**
* The MoveFolderData model module.
* @module model/MoveFolderData
* @version 3.0.0
*/
class MoveFolderData {
/**
* Constructs a new <code>MoveFolderData</code>.
* @alias module:model/MoveFolderData
*/
constructor() {
MoveFolderData.initialize(this);
}
/**
* 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) {
}
/**
* Constructs a <code>MoveFolderData</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/MoveFolderData} obj Optional instance to populate.
* @return {module:model/MoveFolderData} The populated <code>MoveFolderData</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new MoveFolderData();
if (data.hasOwnProperty('parent_folder_id')) {
obj['parent_folder_id'] = ApiClient.convertToType(data['parent_folder_id'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>MoveFolderData</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>MoveFolderData</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['parent_folder_id'] && !(typeof data['parent_folder_id'] === 'string' || data['parent_folder_id'] instanceof String)) {
throw new Error("Expected the field `parent_folder_id` to be a primitive type in the JSON string but got " + data['parent_folder_id']);
}
return true;
}
}
/**
* @member {String} parent_folder_id
*/
MoveFolderData.prototype['parent_folder_id'] = undefined;
export default MoveFolderData;