I am trying to create a model from a call to an api that returns objects in the response.
I have a simple class but now there is an object in the model and I don't know how to create my class as the school->name property in not defined on my page and typescript is complaining.
export class User {
title: string;
first_name: string;
last_name: string;
school : object {
name: string
}
}
What is the correct syntax to add the school object
Thank you