MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / serialize

Function serialize

app/models/user.js:4–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3const User = Peer.extend({
4 serialize() {
5 const data = {
6 uuid: this.uuid,
7 public_ip: this.public_ip,
8 label: this.label,
9 avatarUrl: this.avatarUrl,
10 peer: {
11 id: this.get('peer.id'),
12 },
13 };
14
15 return data;
16 },
17});
18
19export default User;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected