import ProjectInfo from './ProjectInfo'

export default class TeamInfo {
  constructor (json) {
    this.orgName = 'CAPE' // TODO: This is missing in the API call.
    this.projects = [] // TODO: This needs to be cleaned up.
    if (json.projects !== undefined) {
      this.projects = json.projects.map((projectJson) => { return new ProjectInfo(projectJson) })
    }
  }
}
