def from_array(array):
        """
        Deserialize a new ResponseParameters from a given dictionary.

        :return: new ResponseParameters instance.
        :rtype: ResponseParameters
        """
        if array is None or not array:
            return None
        # end if
        assert_type_or_raise(array, dict, parameter_name="array")

        data = {}
        data['migrate_to_chat_id'] = int(array.get('migrate_to_chat_id')) if array.get('migrate_to_chat_id') is not None else None
        data['retry_after'] = int(array.get('retry_after')) if array.get('retry_after') is not None else None
        data['_raw'] = array
        return ResponseParameters(**data)
def from_array ( array ) : if array is None or not array : return None assert_type_or_raise ( array , dict , parameter_name = "array" ) data = { } data [ 'migrate_to_chat_id' ] = int ( array . get ( 'migrate_to_chat_id' ) ) if array . get ( 'migrate_to_chat_id' ) is not None else None data [ 'retry_after' ] = int ( array . get ( 'retry_after' ) ) if array . get ( 'retry_after' ) is not None else None data [ '_raw' ] = array return ResponseParameters ( ** data )
Deserialize a new ResponseParameters from a given dictionary.

        :return: new ResponseParameters instance.
        :rtype: ResponseParameters