/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**
* OCC No description provided (generated by Swagger Codegen
* https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v2
*
*
* 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 RegionOCC model module.
* @module models/RegionOCC
* @version v2
*/
export default class RegionOCC {
/**
* Constructs a new <code>RegionOCC</code>.
* @alias module:models/RegionOCC
* @class
*/
constructor() {
/**
*
* @member {String} isocode
*/
this.isocode = undefined
/**
*
* @member {String} isocodeShort
*/
this.isocodeShort = undefined
/**
*
* @member {String} countryIso
*/
this.countryIso = undefined
/**
*
* @member {String} name
*/
this.name = undefined
}
/**
* Constructs a <code>RegionOCC</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/RegionOCC} obj Optional instance to populate.
* @return {module:models/RegionOCC} The populated <code>RegionOCC</code>
* instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new RegionOCC()
if (data.hasOwnProperty('isocode')) {
obj.isocode = ApiClient.convertToType(data.isocode, 'String')
}
if (data.hasOwnProperty('isocodeShort')) {
obj.isocodeShort = ApiClient.convertToType(data.isocodeShort, 'String')
}
if (data.hasOwnProperty('countryIso')) {
obj.countryIso = ApiClient.convertToType(data.countryIso, 'String')
}
if (data.hasOwnProperty('name')) {
obj.name = ApiClient.convertToType(data.name, 'String')
}
}
return obj
}
}