def transform_into_notification_by_type_json(total_notifications):
    j = []
    for x in total_notifications:
        j.append({"date": x.bst_date, "emails": x.emails, "sms": x.sms, "letters": x.letters})
    return j