|
| 1 | +/** |
| 2 | + * Delve Client SDK |
| 3 | + * This is a Client SDK for Delve API |
| 4 | + * |
| 5 | + * The version of the OpenAPI document: 1.1.3 |
| 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 | +import FrontProblem from './FrontProblem'; |
| 16 | +import Range from './Range'; |
| 17 | + |
| 18 | +/** |
| 19 | + * The InlineInconsistent model module. |
| 20 | + * @module model/InlineInconsistent |
| 21 | + * @version 1.1.3 |
| 22 | + */ |
| 23 | +class InlineInconsistent { |
| 24 | + /** |
| 25 | + * Constructs a new <code>InlineInconsistent</code>. |
| 26 | + * @alias module:model/InlineInconsistent |
| 27 | + * @extends module:model/FrontProblem |
| 28 | + * @implements module:model/FrontProblem |
| 29 | + * @param type {String} |
| 30 | + */ |
| 31 | + constructor(type) { |
| 32 | + FrontProblem.initialize(this, type); |
| 33 | + InlineInconsistent.initialize(this, type); |
| 34 | + } |
| 35 | + |
| 36 | + /** |
| 37 | + * Initializes the fields of this object. |
| 38 | + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). |
| 39 | + * Only for internal use. |
| 40 | + */ |
| 41 | + static initialize(obj, type) { |
| 42 | + obj['name'] = name || ''; |
| 43 | + obj['range'] = range; |
| 44 | + } |
| 45 | + |
| 46 | + /** |
| 47 | + * Constructs a <code>InlineInconsistent</code> from a plain JavaScript object, optionally creating a new instance. |
| 48 | + * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. |
| 49 | + * @param {Object} data The plain JavaScript object bearing properties of interest. |
| 50 | + * @param {module:model/InlineInconsistent} obj Optional instance to populate. |
| 51 | + * @return {module:model/InlineInconsistent} The populated <code>InlineInconsistent</code> instance. |
| 52 | + */ |
| 53 | + static constructFromObject(data, obj) { |
| 54 | + if (data) { |
| 55 | + obj = obj || new InlineInconsistent(); |
| 56 | + FrontProblem.constructFromObject(data, obj); |
| 57 | + FrontProblem.constructFromObject(data, obj); |
| 58 | + |
| 59 | + if (data.hasOwnProperty('name')) { |
| 60 | + obj['name'] = ApiClient.convertToType(data['name'], 'String'); |
| 61 | + } |
| 62 | + if (data.hasOwnProperty('range')) { |
| 63 | + obj['range'] = Range.constructFromObject(data['range']); |
| 64 | + } |
| 65 | + } |
| 66 | + return obj; |
| 67 | + } |
| 68 | + |
| 69 | + |
| 70 | +} |
| 71 | + |
| 72 | +/** |
| 73 | + * @member {String} name |
| 74 | + * @default '' |
| 75 | + */ |
| 76 | +InlineInconsistent.prototype['name'] = ''; |
| 77 | + |
| 78 | +/** |
| 79 | + * @member {module:model/Range} range |
| 80 | + */ |
| 81 | +InlineInconsistent.prototype['range'] = undefined; |
| 82 | + |
| 83 | + |
| 84 | +// Implement FrontProblem interface: |
| 85 | +/** |
| 86 | + * @member {String} type |
| 87 | + * @default '' |
| 88 | + */ |
| 89 | +FrontProblem.prototype['type'] = ''; |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +export default InlineInconsistent; |
| 95 | + |
0 commit comments