Skip to content

Instantly share code, notes, and snippets.

@clement-joye
Created May 15, 2021 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clement-joye/ab74f89495d2ef4620f58e7026791c5c to your computer and use it in GitHub Desktop.
Save clement-joye/ab74f89495d2ef4620f58e7026791c5c to your computer and use it in GitHub Desktop.
export class DashboardCard {
readonly family: string;
readonly name: string;
readonly datasource: string;
readonly pat: string;
readonly resources: DashboardCardResource[];
variables: { [key: string] : string };
status: string = '';
webUrl: string = '';
isLoading: boolean = false;
constructor(obj: any) {
this.family = obj.family;
this.name = obj.name;
this.datasource = obj.datasource;
this.pat = obj.pat;
this.resources = obj.resources;
this.variables = obj.variables;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment