Source: models/OrderStatusUpdateElementList.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/**
 * OCC No description provided (generated by Swagger Codegen
 * https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: v2
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git Do not edit the class
 * manually.
 *
 */

import ApiClient from '../ApiClient'
import OrderStatusUpdateElement from './OrderStatusUpdateElement'

/**
* The OrderStatusUpdateElementList model module.
* @module models/OrderStatusUpdateElementList
* @version v2
*/
export default class OrderStatusUpdateElementList {
    /**
    * Constructs a new <code>OrderStatusUpdateElementList</code>.
    * @alias module:models/OrderStatusUpdateElementList
    * @class
    */

    constructor() {
        /**
    *
    * @member {Array.<module:models/OrderStatusUpdateElement>}
    * orderStatusUpdateElements
    */
        this.orderStatusUpdateElements = undefined
    }

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

            if (data.hasOwnProperty('orderStatusUpdateElements')) {
                obj.orderStatusUpdateElements = ApiClient.convertToType(data.orderStatusUpdateElements, [OrderStatusUpdateElement])
            }
        }
        return obj
    }



}