BerniWittmann/cape-frontend

View on GitHub
src/models/contextAttribute.js

Summary

Maintainability
A
0 mins
Test Coverage
import Base from './base.js'

export default class ContextAttribute extends Base {
  constructor({ _id, key, value, type }) {
    super()

    this.id = _id
    this.key = key
    this.value = value
    this.type = type
  }

  toJSON() {
    return {
      '_id': this.id,
      'key': this.key,
      'value': this.value,
      'type': this.type
    }
  }
}