code: function AttributeDictionary(attributes) {
    expect(arguments).to.have.length.below(
      2,
      'Invalid arguments length when creating an AttributeDictionary (it has ' +
      'to be passed less than 2 arguments)'
    );
  
    if (attributes) {
      expect(typeof attributes).to.equal(
        'object',
        'Invalid argument type when creating an AttributeDictionary (it has to ' +
        'be an object)'
      );
  
      if (attributes instanceof Array) {
        for (var i = 0; i < attributes.length; i++) {
          _addAttribute(this, attributes[i]);
        }
      } else {
        for (var attribute in attributes) {
          _addAttribute(this, attributes[attribute], attribute);
        }
      }
    }
  
    Object.preventExtensions(this);
    Object.seal(this);
  }
docs: Dictionary of Entity Attributes.
  @constructor
  @memberof module:back4app-entity/models/attributes
  @param {?(module:back4app-entity/models/attributes.Attribute[]|
  Object.<!string, !(module:back4app-entity/models/attributes.Attribute|
  Object)>)}
  [attributes] The attributes to be added in the dictionary. They can be given
  as an Array or a Dictionary of
  {@link module:back4app-entity/models/attributes.Attribute}.
  @example
  var attributeDictionary = new AttributeDictionary();
  @example
  var attributeDictionary = new AttributeDictionary(null);
  @example
  var attributeDictionary = new AttributeDictionary({});
  @example
  var attributeDictionary = new AttributeDictionary({
  attribute1: new StringAttribute('attribute1'),
  attribute2: new StringAttribute('attribute2')
  });