export namespace main { export class Response { code: number; message: string; data?: any; static createFrom(source: any = {}) { return new Response(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.code = source["code"]; this.message = source["message"]; this.data = source["data"]; } } export class User { id: number; name: string; email: string; created_at: string; static createFrom(source: any = {}) { return new User(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; this.name = source["name"]; this.email = source["email"]; this.created_at = source["created_at"]; } } }