```
export class School {
    constructor(

        public name: string,
        public address: Address,
        public district: string,
        public contactNumber: string,
        public gradeRange: string,
        public currentYear: number,
        public trialAcct: boolean,
        public customerInfo: CustomerInfo,
        public composing: boolean,
        public createdAt: number,

    ){}
    export class Address{
            streetAddress1: string;
            streetAddress2:string;
            city: string;
            state: string;
            postalCode: string;

    }

    export class CustomerInfo{
        public customerID: string;
        public paymentID: string;
        public subscriptionID: string;
        public maskedPayment: string;
        public firstName: string;
        public lastName: string;
    }

```

that's the model i defined for the data, when creating object of this class with the data i get from api then it gives me address was not provided. But in the data address is provided.
this is how i create object of this,

```
getSchool(): School {
    return new School(this.schooldata);
  }

```

and this.schooldata contains data in it.

I have No idea where should i get the error