/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* 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'
import Note from './Note'
/**
* The NotesResult model module.
* @module models/NotesResult
* @version 20.4
*/
export default class NotesResult {
/**
* Constructs a new <code>NotesResult</code>.
* A result of a note request. Contains notes for an object - for example, for a basket.
* @alias module:models/NotesResult
* @class
*/
constructor() {
}
/**
* Constructs a <code>NotesResult</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/NotesResult} obj Optional instance to populate.
* @return {module:models/NotesResult} The populated <code>NotesResult</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new NotesResult()
if (data.hasOwnProperty('notes')) {
obj.notes = ApiClient.convertToType(data.notes, [Note])
}
}
return obj
}
/**
* The notes for an object.
* @member {Array.<module:models/Note>} notes
*/
notes = undefined;
}