21 lines
606 B
TypeScript
21 lines
606 B
TypeScript
// Metro module 4213 (f4214).
|
|
import Record from "../lib/Record";
|
|
import { $callWithNewTarget } from "../_hermes/prelude";
|
|
class CompanyRecord extends Record {
|
|
constructor(a0) {
|
|
super();
|
|
this.id = a0.id;
|
|
this.name = a0.name;
|
|
}
|
|
static createFromServer(a0) {
|
|
const prototypeOf = Object.getPrototypeOf(CompanyRecord);
|
|
const r2 = Object.create(CompanyRecord.prototype);
|
|
const r10 = $callWithNewTarget(prototypeOf, r2, CompanyRecord);
|
|
const r11 = r10 instanceof Object ? r10 : r2;
|
|
r11.id = a0.id;
|
|
r11.name = a0.name;
|
|
return r11;
|
|
}
|
|
}
|
|
export default CompanyRecord;
|