This is taken care of by the MakeAPI-client library, which generates a string that this function understands: https://github.com/mozilla/makeapi-client/blob/master/src/make-api.js#L296-L312

I'll toss in some comments to clarify what's happening here as well.