export interface SelectInterface {
  id: any;
  title: string;
  imgUrl?: string | undefined;
  extra?: string;
  nestedList?: {
    id: any;
    title: string;
    extra?: string;
  }[];
}

export class SelectModel implements SelectInterface {
  id: any;

  title: string;

  imgUrl?: string | undefined;

  nestedList?: {
    id: any;
    title: string;
    extra?: string;
  }[];

  constructor(
    id: any,
    title: string,
    imgUrl?: string | undefined,
    nestedList?: {
      id: any;
      title: string;
    }[]
  ) {
    this.id = id;
    this.title = title;
    this.imgUrl = imgUrl;
    this.nestedList = nestedList;
  }
}
