23 lines
719 B
TypeScript
23 lines
719 B
TypeScript
// Metro module 1900 (f1901).
|
|
import Record from "../../../lib/Record";
|
|
import { $callWithNewTarget } from "../../../_hermes/prelude";
|
|
class BaseCollectiblesItemRecord extends Record {
|
|
constructor(a0) {
|
|
super();
|
|
this.skuId = a0.skuId;
|
|
}
|
|
static fromServer({ sku_id, ...rest }) {
|
|
const r2 = {
|
|
...rest,
|
|
skuId: sku_id
|
|
};
|
|
const prototypeOf = Object.getPrototypeOf(BaseCollectiblesItemRecord);
|
|
const r18 = Object.create(BaseCollectiblesItemRecord.prototype);
|
|
const r19 = $callWithNewTarget(prototypeOf, r18, BaseCollectiblesItemRecord);
|
|
const r20 = r19 instanceof Object ? r19 : r18;
|
|
r20.skuId = r2.skuId;
|
|
return r20;
|
|
}
|
|
}
|
|
export default BaseCollectiblesItemRecord;
|