class TeamModel { private id : number ; private name : string ; private iso2 : string ; public constructor ( id , name , iso2 ) { this . id = id ; this . name = name ; this . iso2 = iso2 ; } public getId ( ) { return this . id ; } public getName ( ) { return this . name ; } public getIso2 ( ) { return this . iso2 ; } public getWeight ( ) { if ( this . getName ( ) === 'Japan' ) { return 1 ; } if ( this . getName ( ) === 'England' ) { return 1 ; } return 0 ; } } export default TeamModel ;