/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* 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 ProductListRegistrant. * 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 ProductListRegistrant from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj 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 ProductListRegistrant 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; }