File
Methods
deserialize
|
deserialize(input: any)
|
|
Parameters :
Name |
Type |
Optional |
input |
any
|
No
|
Returns : this
|
import { Deserializable } from '@tibco-tcstk/tc-core-lib';
/* models used by landing page config */
export class ActionButtonConfig {
public text: string;
public route: string;
deserialize(input: any) {
Object.assign(this, input);
return this;
}
}
export class LandingPageItemConfig {
public title: string;
public content: string;
public iconURL: string;
deserialize(input: any) {
Object.assign(this, input);
return this;
}
}
export class LandingPageConfig {
public key: string;
public description: string;
public title: string;
public subtitle: string;
public backgroundURL: string;
public topMargin: number;
public homeRoute: string;
public highlights: LandingPageItemConfig[];
public actionButton: ActionButtonConfig[];
roles: string[];
deserialize(input: any) {
Object.assign(this, input);
return this;
}
}
export class GeneralLandingPageConfig implements Deserializable {
id: string;
version: string;
uiAppId: string;
landingPage: LandingPageConfig[];
deserialize(input: any) {
Object.assign(this, input);
return this;
}
}