Source: models/ProductListRegistrant.js

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

/**
 * Shop API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 20.4
 *
 *
 * 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'





/**
* The ProductListRegistrant model module.
* @module models/ProductListRegistrant
* @version 20.4
*/
export default class ProductListRegistrant {
    /**
    * Constructs a new <code>ProductListRegistrant</code>.
    *   A ProductListRegistrant is typically associated with an event related product list such as a gift registry. It holds  information about a person associated with the event such as a bride or groom.
    * @alias module:models/ProductListRegistrant
    * @class
    */

    constructor() {








    }

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





            if (data.hasOwnProperty('first_name')) {
                obj.first_name = ApiClient.convertToType(data.first_name, 'String')
            }
            if (data.hasOwnProperty('last_name')) {
                obj.last_name = ApiClient.convertToType(data.last_name, 'String')
            }
            if (data.hasOwnProperty('role')) {
                obj.role = ApiClient.convertToType(data.role, 'String')
            }
        }
        return obj
    }

    /**
    * The first name of the registrant.
    * @member {String} first_name
    */
    first_name = undefined;
    /**
    * The last name of the registrant.
    * @member {String} last_name
    */
    last_name = undefined;
    /**
    * The role of the registrant.
    * @member {String} role
    */
    role = undefined;








}