import DS from 'ember-data';

export default DS.JSONAPISerializer.extend({
  serialize() {
    const json = this._super.apply(this, arguments);
    const password = json.data.attributes.password;
    if (typeof password === 'undefined' || password === null) {
      delete json.data.attributes.password;
    }

    return json;
  }
});

@@ -80,16 +80,23 @@
 rialize(
+...args
 ) %7B%0A    
@@ -139,13 +139,8 @@
  arg
-ument
 s);%0A

Use the rest parameters instead of arguments in account serializer