in src/react-native-app/protos/demo.ts [2155:2163]
shippingCost: isSet(object.shippingCost) ? Money.fromJSON(object.shippingCost) : undefined,
shippingAddress: isSet(object.shippingAddress) ? Address.fromJSON(object.shippingAddress) : undefined,
items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => OrderItem.fromJSON(e)) : [],
};
},
toJSON(message: OrderResult): unknown {
const obj: any = {};
if (message.orderId !== "") {