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

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