File size: 443 Bytes
3206347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const appSerializer = (app) => {
  let appData = {
    key: app.key,
    name: app.name,
    iconUrl: app.iconUrl,
    primaryColor: app.primaryColor,
    authDocUrl: app.authDocUrl,
    supportsConnections: app.supportsConnections,
  };

  if (app.connectionCount) {
    appData.connectionCount = app.connectionCount;
  }

  if (app.flowCount) {
    appData.flowCount = app.flowCount;
  }

  return appData;
};

export default appSerializer;