static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new Pin();

            if (data.hasOwnProperty('cid')) {
                obj['cid'] = ApiClient.convertToType(data['cid'], 'String');
            }
            if (data.hasOwnProperty('name')) {
                obj['name'] = ApiClient.convertToType(data['name'], 'String');
            }
            if (data.hasOwnProperty('origins')) {
                obj['origins'] = ApiClient.convertToType(data['origins'], ['String']);
            }
            if (data.hasOwnProperty('meta')) {
                obj['meta'] = ApiClient.convertToType(data['meta'], {'String': 'String'});
            }
        }
        return obj;
    }
/**
     * Constructs a <code>Pin</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:model/Pin} obj Optional instance to populate.
     * @return {module:model/Pin} The populated <code>Pin</code> instance.
     */
Constructs a Pin 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:model/Pin} obj Optional instance to populate.
@return {module:model/Pin} The populated Pin instance.
Constructs a Pin 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 : model / Pin } obj Optional instance to populate . @return { module : model / Pin } The populated Pin instance .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new Pin();
            if (data.hasOwnProperty('cid')) {
                obj['cid'] = ApiClient.convertToType(data['cid'], 'String');
            }
            if (data.hasOwnProperty('name')) {
                obj['name'] = ApiClient.convertToType(data['name'], 'String');
            }
            if (data.hasOwnProperty('origins')) {
                obj['origins'] = ApiClient.convertToType(data['origins'], ['String']);
            }
            if (data.hasOwnProperty('meta')) {
                obj['meta'] = ApiClient.convertToType(data['meta'], {'String': 'String'});
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new Pin ( ) ; if ( data . hasOwnProperty ( 'cid' ) ) { obj [ 'cid' ] = ApiClient . convertToType ( data [ 'cid' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'name' ) ) { obj [ 'name' ] = ApiClient . convertToType ( data [ 'name' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'origins' ) ) { obj [ 'origins' ] = ApiClient . convertToType ( data [ 'origins' ] , [ 'String' ] ) ; } if ( data . hasOwnProperty ( 'meta' ) ) { obj [ 'meta' ] = ApiClient . convertToType ( data [ 'meta' ] , { 'String' : 'String' } ) ; } } return obj ; }
Constructs a <code>Pin</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > Pin< / code > from a plain JavaScript object optionally creating a new instance .