def notification_email_allowed?(target, key = nil)
      resolve_parameter(
        "notification_email_allowed_for_#{cast_to_resources_name(target.class)}?",
        _notification_email_allowed[cast_to_resources_sym(target.class)],
        ActivityNotification.config.email_enabled,
        target, key)
    end
def notification_email_allowed?(target, key = nil)
      resolve_parameter(
        "notification_email_allowed_for_#{cast_to_resources_name(target.class)}?",
        _notification_email_allowed[cast_to_resources_sym(target.class)],
        ActivityNotification.config.email_enabled,
        target, key)
    end
Returns if sending notification email is allowed for the notifiable from configured field or overriden method.
 This method is able to be overriden.

 @param [Object] target Target instance to notify
 @param [String] key Key of the notification
 @return [Boolean] If sending notification email is allowed for the notifiable