Source: models/CustomerProductListItemLink.js

  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2. /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
  3. /* * * * * * * * * * * * * * * * * * * * * * * * * * * */
  4. /**
  5. * Shop API
  6. * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  7. *
  8. * OpenAPI spec version: 20.4
  9. *
  10. *
  11. * NOTE: This class is auto generated by the swagger code generator program.
  12. * https://github.com/swagger-api/swagger-codegen.git
  13. * Do not edit the class manually.
  14. *
  15. */
  16. import ApiClient from '../ApiClient'
  17. /**
  18. * The CustomerProductListItemLink model module.
  19. * @module models/CustomerProductListItemLink
  20. * @version 20.4
  21. */
  22. export default class CustomerProductListItemLink {
  23. /**
  24. * Constructs a new <code>CustomerProductListItemLink</code>.
  25. * Document representing a customer product list item link.
  26. * @alias module:models/CustomerProductListItemLink
  27. * @class
  28. */
  29. constructor() {
  30. }
  31. /**
  32. * Constructs a <code>CustomerProductListItemLink</code> from a plain JavaScript object, optionally creating a new instance.
  33. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  34. * @param {Object} data The plain JavaScript object bearing properties of interest.
  35. * @param {module:models/CustomerProductListItemLink} obj Optional instance to populate.
  36. * @return {module:models/CustomerProductListItemLink} The populated <code>CustomerProductListItemLink</code> instance.
  37. */
  38. static constructFromObject(data, obj) {
  39. if (data) {
  40. obj = obj || new CustomerProductListItemLink()
  41. if (data.hasOwnProperty('link')) {
  42. obj.link = ApiClient.convertToType(data.link, 'String')
  43. }
  44. if (data.hasOwnProperty('title')) {
  45. obj.title = ApiClient.convertToType(data.title, 'String')
  46. }
  47. }
  48. return obj
  49. }
  50. /**
  51. * The target of the link.
  52. * @member {String} link
  53. */
  54. link = undefined;
  55. /**
  56. * The link title.
  57. * @member {String} title
  58. */
  59. title = undefined;
  60. }