How to convert .htaccess to Firebase settings (firebase.json)

I have a hard time converting below .htaccess settings to firebase.json configs. I was trying to find some online conversion to no avail.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

to this kind of syntax

{
  "hosting": {
    "public": "public",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],

    "rewrites": [
      {
        "source": "/**",
        "dynamicLinks": true
      }
    ]
  }
}