def get_layer_params(form_data, layer_type):
    """
    Request data for all params defined for a certain layer

    :param layer_type:
    :type layer_type: str

    :rtype: dict
    """
    _result = {}
    if layer_type == 'Dense':
        _result['units'] = form_data.units.data
        _result['activation'] = form_data.activation.data
    elif layer_type == 'Dropout':
        _result['rate'] = form_data.rate.data
    return _result