frontend/src/app/structures/ApiResponse.ts

12 lines
296 B
TypeScript
Raw Normal View History

export default class ApiResponse {
public data: any;
public message: string;
public status: number;
constructor(data: { status: number, message: string, data: any }) {
this.data = data.data;
this.message = data.message;
this.status = data.status;
}
}