Fixes the DIDParam when converting it to a hash.