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

            if (data.hasOwnProperty('attachments')) {
                obj['attachments'] = ApiClient.convertToType(data['attachments'], ['String']);
            }
            if (data.hasOwnProperty('bcc')) {
                obj['bcc'] = ApiClient.convertToType(data['bcc'], ['String']);
            }
            if (data.hasOwnProperty('body')) {
                obj['body'] = ApiClient.convertToType(data['body'], 'String');
            }
            if (data.hasOwnProperty('cc')) {
                obj['cc'] = ApiClient.convertToType(data['cc'], ['String']);
            }
            if (data.hasOwnProperty('charset')) {
                obj['charset'] = ApiClient.convertToType(data['charset'], 'String');
            }
            if (data.hasOwnProperty('from')) {
                obj['from'] = ApiClient.convertToType(data['from'], 'String');
            }
            if (data.hasOwnProperty('isHTML')) {
                obj['isHTML'] = ApiClient.convertToType(data['isHTML'], 'Boolean');
            }
            if (data.hasOwnProperty('replyTo')) {
                obj['replyTo'] = ApiClient.convertToType(data['replyTo'], 'String');
            }
            if (data.hasOwnProperty('sendStrategy')) {
                obj['sendStrategy'] = ApiClient.convertToType(data['sendStrategy'], 'String');
            }
            if (data.hasOwnProperty('subject')) {
                obj['subject'] = ApiClient.convertToType(data['subject'], 'String');
            }
            if (data.hasOwnProperty('template')) {
                obj['template'] = ApiClient.convertToType(data['template'], 'String');
            }
            if (data.hasOwnProperty('templateVariables')) {
                obj['templateVariables'] = ApiClient.convertToType(data['templateVariables'], Object);
            }
            if (data.hasOwnProperty('to')) {
                obj['to'] = ApiClient.convertToType(data['to'], ['String']);
            }
            if (data.hasOwnProperty('toContacts')) {
                obj['toContacts'] = ApiClient.convertToType(data['toContacts'], ['String']);
            }
            if (data.hasOwnProperty('toGroup')) {
                obj['toGroup'] = ApiClient.convertToType(data['toGroup'], 'String');
            }
        }
        return obj;
    }
/**
     * Constructs a <code>SendEmailOptions</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/SendEmailOptions} obj Optional instance to populate.
     * @return {module:model/SendEmailOptions} The populated <code>SendEmailOptions</code> instance.
     */
Constructs a SendEmailOptions 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/SendEmailOptions} obj Optional instance to populate.
Constructs a SendEmailOptions 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 / SendEmailOptions } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new SendEmailOptions();
            if (data.hasOwnProperty('attachments')) {
                obj['attachments'] = ApiClient.convertToType(data['attachments'], ['String']);
            }
            if (data.hasOwnProperty('bcc')) {
                obj['bcc'] = ApiClient.convertToType(data['bcc'], ['String']);
            }
            if (data.hasOwnProperty('body')) {
                obj['body'] = ApiClient.convertToType(data['body'], 'String');
            }
            if (data.hasOwnProperty('cc')) {
                obj['cc'] = ApiClient.convertToType(data['cc'], ['String']);
            }
            if (data.hasOwnProperty('charset')) {
                obj['charset'] = ApiClient.convertToType(data['charset'], 'String');
            }
            if (data.hasOwnProperty('from')) {
                obj['from'] = ApiClient.convertToType(data['from'], 'String');
            }
            if (data.hasOwnProperty('isHTML')) {
                obj['isHTML'] = ApiClient.convertToType(data['isHTML'], 'Boolean');
            }
            if (data.hasOwnProperty('replyTo')) {
                obj['replyTo'] = ApiClient.convertToType(data['replyTo'], 'String');
            }
            if (data.hasOwnProperty('sendStrategy')) {
                obj['sendStrategy'] = ApiClient.convertToType(data['sendStrategy'], 'String');
            }
            if (data.hasOwnProperty('subject')) {
                obj['subject'] = ApiClient.convertToType(data['subject'], 'String');
            }
            if (data.hasOwnProperty('template')) {
                obj['template'] = ApiClient.convertToType(data['template'], 'String');
            }
            if (data.hasOwnProperty('templateVariables')) {
                obj['templateVariables'] = ApiClient.convertToType(data['templateVariables'], Object);
            }
            if (data.hasOwnProperty('to')) {
                obj['to'] = ApiClient.convertToType(data['to'], ['String']);
            }
            if (data.hasOwnProperty('toContacts')) {
                obj['toContacts'] = ApiClient.convertToType(data['toContacts'], ['String']);
            }
            if (data.hasOwnProperty('toGroup')) {
                obj['toGroup'] = ApiClient.convertToType(data['toGroup'], 'String');
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new SendEmailOptions ( ) ; if ( data . hasOwnProperty ( 'attachments' ) ) { obj [ 'attachments' ] = ApiClient . convertToType ( data [ 'attachments' ] , [ 'String' ] ) ; } if ( data . hasOwnProperty ( 'bcc' ) ) { obj [ 'bcc' ] = ApiClient . convertToType ( data [ 'bcc' ] , [ 'String' ] ) ; } if ( data . hasOwnProperty ( 'body' ) ) { obj [ 'body' ] = ApiClient . convertToType ( data [ 'body' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'cc' ) ) { obj [ 'cc' ] = ApiClient . convertToType ( data [ 'cc' ] , [ 'String' ] ) ; } if ( data . hasOwnProperty ( 'charset' ) ) { obj [ 'charset' ] = ApiClient . convertToType ( data [ 'charset' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'from' ) ) { obj [ 'from' ] = ApiClient . convertToType ( data [ 'from' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'isHTML' ) ) { obj [ 'isHTML' ] = ApiClient . convertToType ( data [ 'isHTML' ] , 'Boolean' ) ; } if ( data . hasOwnProperty ( 'replyTo' ) ) { obj [ 'replyTo' ] = ApiClient . convertToType ( data [ 'replyTo' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'sendStrategy' ) ) { obj [ 'sendStrategy' ] = ApiClient . convertToType ( data [ 'sendStrategy' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'subject' ) ) { obj [ 'subject' ] = ApiClient . convertToType ( data [ 'subject' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'template' ) ) { obj [ 'template' ] = ApiClient . convertToType ( data [ 'template' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'templateVariables' ) ) { obj [ 'templateVariables' ] = ApiClient . convertToType ( data [ 'templateVariables' ] , Object ) ; } if ( data . hasOwnProperty ( 'to' ) ) { obj [ 'to' ] = ApiClient . convertToType ( data [ 'to' ] , [ 'String' ] ) ; } if ( data . hasOwnProperty ( 'toContacts' ) ) { obj [ 'toContacts' ] = ApiClient . convertToType ( data [ 'toContacts' ] , [ 'String' ] ) ; } if ( data . hasOwnProperty ( 'toGroup' ) ) { obj [ 'toGroup' ] = ApiClient . convertToType ( data [ 'toGroup' ] , 'String' ) ; } } return obj ; }
Constructs a <code>SendEmailOptions</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > SendEmailOptions< / code > from a plain JavaScript object optionally creating a new instance .