|
| 1 | +/** |
| 2 | + * Delve Client SDK |
| 3 | + * This is a Client SDK for Delve API |
| 4 | + * |
| 5 | + * The version of the OpenAPI document: 1.0.8 |
| 6 | + * Contact: support@relational.ai |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 9 | + * https://openapi-generator.tech |
| 10 | + * Do not edit the class manually. |
| 11 | + * |
| 12 | + */ |
| 13 | + |
| 14 | +import ApiClient from '../ApiClient'; |
| 15 | + |
| 16 | +/** |
| 17 | + * The AnyType model module. |
| 18 | + * @module model/AnyType |
| 19 | + * @version 1.0.8 |
| 20 | + */ |
| 21 | +class AnyType { |
| 22 | + /** |
| 23 | + * Constructs a new <code>AnyType</code>. |
| 24 | + * @alias module:model/AnyType |
| 25 | + * @param target_value {Number} |
| 26 | + * @param type {module:model/AnyType.TypeEnum} |
| 27 | + */ |
| 28 | + constructor(target_value, type) { |
| 29 | + |
| 30 | + AnyType.initialize(this, target_value, type); |
| 31 | + } |
| 32 | + |
| 33 | + /** |
| 34 | + * Initializes the fields of this object. |
| 35 | + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). |
| 36 | + * Only for internal use. |
| 37 | + */ |
| 38 | + static initialize(obj, target_value, type) { |
| 39 | + obj['target_value'] = target_value || null; |
| 40 | + obj['type'] = type || 'AnyType'; |
| 41 | + } |
| 42 | + |
| 43 | + /** |
| 44 | + * Constructs a <code>AnyType</code> from a plain JavaScript object, optionally creating a new instance. |
| 45 | + * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. |
| 46 | + * @param {Object} data The plain JavaScript object bearing properties of interest. |
| 47 | + * @param {module:model/AnyType} obj Optional instance to populate. |
| 48 | + * @return {module:model/AnyType} The populated <code>AnyType</code> instance. |
| 49 | + */ |
| 50 | + static constructFromObject(data, obj) { |
| 51 | + if (data) { |
| 52 | + obj = obj || new AnyType(); |
| 53 | + |
| 54 | + if (data.hasOwnProperty('target_value')) { |
| 55 | + obj['target_value'] = ApiClient.convertToType(data['target_value'], 'Number'); |
| 56 | + } |
| 57 | + if (data.hasOwnProperty('type')) { |
| 58 | + obj['type'] = ApiClient.convertToType(data['type'], 'String'); |
| 59 | + } |
| 60 | + } |
| 61 | + return obj; |
| 62 | + } |
| 63 | + |
| 64 | + |
| 65 | +} |
| 66 | + |
| 67 | +/** |
| 68 | + * @member {Number} target_value |
| 69 | + * @default 0 |
| 70 | + */ |
| 71 | +AnyType.prototype['target_value'] = 0; |
| 72 | + |
| 73 | +/** |
| 74 | + * @member {module:model/AnyType.TypeEnum} type |
| 75 | + * @default 'AnyType' |
| 76 | + */ |
| 77 | +AnyType.prototype['type'] = 'AnyType'; |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | +/** |
| 84 | + * Allowed values for the <code>type</code> property. |
| 85 | + * @enum {String} |
| 86 | + * @readonly |
| 87 | + */ |
| 88 | +AnyType['TypeEnum'] = { |
| 89 | + |
| 90 | + /** |
| 91 | + * value: "AnyType" |
| 92 | + * @const |
| 93 | + */ |
| 94 | + "AnyType": "AnyType" |
| 95 | +}; |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | +export default AnyType; |
| 100 | + |
0 commit comments