/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* 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 Store from './Store'
/**
* The StoreResult model module.
* @module models/StoreResult
* @version 20.4
*/
export default class StoreResult {
/**
* Constructs a new <code>StoreResult</code>.
* Result document containing an array of stores.
* @alias module:models/StoreResult
* @class
*/
constructor() {
}
/**
* Constructs a <code>StoreResult</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/StoreResult} obj Optional instance to populate.
* @return {module:models/StoreResult} The populated <code>StoreResult</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new StoreResult()
if (data.hasOwnProperty('count')) {
obj.count = ApiClient.convertToType(data.count, 'Number')
}
if (data.hasOwnProperty('data')) {
obj.data = ApiClient.convertToType(data.data, [Store])
}
if (data.hasOwnProperty('next')) {
obj.next = ApiClient.convertToType(data.next, 'String')
}
if (data.hasOwnProperty('previous')) {
obj.previous = ApiClient.convertToType(data.previous, 'String')
}
if (data.hasOwnProperty('start')) {
obj.start = ApiClient.convertToType(data.start, 'Number')
}
if (data.hasOwnProperty('total')) {
obj.total = ApiClient.convertToType(data.total, 'Number')
}
}
return obj
}
/**
* The number of search results in the current page.
* @member {Number} count
*/
count = undefined;
/**
*
* @member {Array.<module:models/Store>} data
*/
data = undefined;
/**
* The URL of the next result page.
* @member {String} next
*/
next = undefined;
/**
* The URL of the previous result page.
* @member {String} previous
*/
previous = undefined;
/**
* The zero-based index of the first search result to include in the document.
* @member {Number} start
*/
start = undefined;
/**
* The total number of search results.
* @member {Number} total
*/
total = undefined;
}