export interface Resource {
  idResource?: string;
  resourceName?: string;
  description?: string;
  links?:string[];
  fileNames?:string[];
  resourceOrigin?: string;
  countryOrigin?:Country;
  resourceType?: ResourceType;
  sectors?: Sector[];
  regions?: Region[];
  crops?:Crop[];
  pests?:Pest[];
  keywordsTemp?:string[];
  keywords?: Keyword[];
  language?: Language;
  project?: Project;
  contactName?: string;
  contactInstitution?: string;
  contactEmail?: string;
  contactPhone?: string;
  mainURL?:string;
  citation?:string;
}

export class Country{
  public idCountry!:string;
  public name!: string;
}
export class Crop{
  public idCrop!:string;
  public name!: string;
}
export class Pest{
  public idPest!:string;
  public name!: string;
}
export class ResourceType{
  public idResourceType!:string;
  public name!: string;
}
export class Sector{
  public idSector!: string;
  public name!: string;
  public sectorIcon!:string;
}
export class Region{
  public idRegion!: string;
  public name!: string;
}
export class Language{
  public idLanguage!: string;
  public name!: string;
}
export class Project{
  public idProject!: string;
  public name!: string;
  public description!: string;
}
export class Keyword{
  public idKeyword!: string;
  public name!: string;
}
