code: function invertObject(obj, secondary) {
      if (obj == null)
          return EMPTY$1;
      var newLookup = {};
      for (var minifiedKey in obj) {
          if (obj.hasOwnProperty(minifiedKey)) {
              var publicName = obj[minifiedKey];
              var declaredName = publicName;
              if (Array.isArray(publicName)) {
                  declaredName = publicName[1];
                  publicName = publicName[0];
              }
              newLookup[publicName] = minifiedKey;
              if (secondary) {
                  (secondary[declaredName] = minifiedKey);
              }
          }
      }
      return newLookup;
  }
docs: Inverts an inputs or outputs lookup such that the keys, which were the
  minified keys, are part of the values, and the values are parsed so that
  the publicName of the property is the new key
  
  e.g. for
  
  ```
  class Comp {
  @Input()
  propName1: string;
  
  @Input('publicName')
  propName2: number;
  }
  ```
  
  will be serialized as
  
  ```
  {
  a0: 'propName1',
  b1: ['publicName', 'propName2'],
  }
  ```
  
  becomes
  
  ```
  {
  'propName1': 'a0',
  'publicName': 'b1'
  }
  ```
  
  Optionally the function can take `secondary` which will result in:
  
  ```
  {
  'propName1': 'a0',
  'propName2': 'b1'
  }
  ```