For example, consider the following class that implements the ProjectAttrs interface:
export class ProjectAttrsImpl implements ProjectAttrs {
name: string;
description: string | null;
coordinates: string | null;
}
I am dealing with a large number of classes in my JSON implementation and I am attempting to dynamically define all classes. After parsing the JSON, I ended up with the structure below:
project: {
name: 'string',
description: 'string | null',
coordinates: 'string | null',
}
The properties like name and description are currently taking values as strings. However, I want to specify their data type as a string, not specific values. Can you please provide assistance?