WeTransfer/wt-js-sdk

View on GitHub
src/boards/models/remote-link.js

Summary

Maintainability
A
0 mins
Test Coverage
class RemoteLink {
  constructor(values) {
    Object.assign(this, values);
  }

  // Select which properties are going to be serialized,
  // to avoid JSON circular references
  toJSON() {
    return {
      id: this.id,
      url: this.url,
      meta: this.meta,
      type: this.type,
    };
  }
}

module.exports = RemoteLink;