Well I'm trying to encapsulate my objects. The first object it maps to the first JSON array.
export interface PraticarObject {
id_assunto: number;
nome_assunto: string;
qt_exercicios_concluidos: string;
conteudos: ConteudosPraticarArray[];
}
Good, that's fine, I can get the id_assemblies_name, qt_exercise, but when I try to get the contents.
It returns me like this
the class ContentsPracticeArray is like this.
export interface ConteudosPraticarArray {
id_conteudo: string;
nome_conteudo: string;
}
I'm using the Observable method in api to fill in the PraticarObject.
Well the problem is that it brings me the Object and I can not use it. :