import TeamInfo from './TeamInfo'

export default class OrgInfo {
  constructor (json) {
    this.id = json.org_name
    this.name = json.org_name
    this.teams = []
    if (json.teams !== undefined) {
      this.teams = json.teams.map((teamJson) => { return new TeamInfo(teamJson) })
    }
  }
}
