/**
 * OpenAPI Petstore
 * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 *
 * OpenAPI spec version: 1.0.0
 * 
 *
 * 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 InlineObject3 model module.
 * @module model/InlineObject3
 * @version 1.0.0
 */
class InlineObject3 {
    /**
     * Constructs a new <code>InlineObject3</code>.
     * @alias module:model/InlineObject3
     * @param _number {Number} None
     * @param _double {Number} None
     * @param patternWithoutDelimiter {String} None
     * @param _byte {Blob} None
     */
    constructor(_number, _double, patternWithoutDelimiter, _byte) { 
        
        InlineObject3.initialize(this, _number, _double, patternWithoutDelimiter, _byte);
    }

    /**
     * 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, _number, _double, patternWithoutDelimiter, _byte) { 
        obj['number'] = _number;
        obj['double'] = _double;
        obj['pattern_without_delimiter'] = patternWithoutDelimiter;
        obj['byte'] = _byte;
    }

    /**
     * Constructs a <code>InlineObject3</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/InlineObject3} obj Optional instance to populate.
     * @return {module:model/InlineObject3} The populated <code>InlineObject3</code> instance.
     */
    static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new InlineObject3();

            if (data.hasOwnProperty('integer')) {
                obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
            }
            if (data.hasOwnProperty('int32')) {
                obj['int32'] = ApiClient.convertToType(data['int32'], 'Number');
            }
            if (data.hasOwnProperty('int64')) {
                obj['int64'] = ApiClient.convertToType(data['int64'], 'Number');
            }
            if (data.hasOwnProperty('number')) {
                obj['number'] = ApiClient.convertToType(data['number'], 'Number');
            }
            if (data.hasOwnProperty('float')) {
                obj['float'] = ApiClient.convertToType(data['float'], 'Number');
            }
            if (data.hasOwnProperty('double')) {
                obj['double'] = ApiClient.convertToType(data['double'], 'Number');
            }
            if (data.hasOwnProperty('string')) {
                obj['string'] = ApiClient.convertToType(data['string'], 'String');
            }
            if (data.hasOwnProperty('pattern_without_delimiter')) {
                obj['pattern_without_delimiter'] = ApiClient.convertToType(data['pattern_without_delimiter'], 'String');
            }
            if (data.hasOwnProperty('byte')) {
                obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
            }
            if (data.hasOwnProperty('binary')) {
                obj['binary'] = ApiClient.convertToType(data['binary'], File);
            }
            if (data.hasOwnProperty('date')) {
                obj['date'] = ApiClient.convertToType(data['date'], 'Date');
            }
            if (data.hasOwnProperty('dateTime')) {
                obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date');
            }
            if (data.hasOwnProperty('password')) {
                obj['password'] = ApiClient.convertToType(data['password'], 'String');
            }
            if (data.hasOwnProperty('callback')) {
                obj['callback'] = ApiClient.convertToType(data['callback'], 'String');
            }
        }
        return obj;
    }


}

/**
 * None
 * @member {Number} integer
 */
InlineObject3.prototype['integer'] = undefined;

/**
 * None
 * @member {Number} int32
 */
InlineObject3.prototype['int32'] = undefined;

/**
 * None
 * @member {Number} int64
 */
InlineObject3.prototype['int64'] = undefined;

/**
 * None
 * @member {Number} number
 */
InlineObject3.prototype['number'] = undefined;

/**
 * None
 * @member {Number} float
 */
InlineObject3.prototype['float'] = undefined;

/**
 * None
 * @member {Number} double
 */
InlineObject3.prototype['double'] = undefined;

/**
 * None
 * @member {String} string
 */
InlineObject3.prototype['string'] = undefined;

/**
 * None
 * @member {String} pattern_without_delimiter
 */
InlineObject3.prototype['pattern_without_delimiter'] = undefined;

/**
 * None
 * @member {Blob} byte
 */
InlineObject3.prototype['byte'] = undefined;

/**
 * None
 * @member {File} binary
 */
InlineObject3.prototype['binary'] = undefined;

/**
 * None
 * @member {Date} date
 */
InlineObject3.prototype['date'] = undefined;

/**
 * None
 * @member {Date} dateTime
 */
InlineObject3.prototype['dateTime'] = undefined;

/**
 * None
 * @member {String} password
 */
InlineObject3.prototype['password'] = undefined;

/**
 * None
 * @member {String} callback
 */
InlineObject3.prototype['callback'] = undefined;






export default InlineObject3;

