@amirmarmul/waba-common
Version:

17 lines (16 loc) • 589 B
TypeScript
export declare class JsonResource {
[]: any;
protected hidden: string[];
protected fillable: string[];
protected attributes: any;
constructor(attributes: object);
protected fill(attributes: any): void;
protected isAttribute(key: string): boolean;
protected getAttribute(key: string): any;
protected setAttribute(key: string, value: any): void;
protected getHidden(): string[];
protected setHidden(keys: string[]): void;
protected getFillable(): string[];
protected setFillable(keys: string[]): void;
toJSON(): any;
}