in src/react-native-app/protos/demo.ts [864:876]
name: isSet(object.name) ? globalThis.String(object.name) : "",
description: isSet(object.description) ? globalThis.String(object.description) : "",
picture: isSet(object.picture) ? globalThis.String(object.picture) : "",
priceUsd: isSet(object.priceUsd) ? Money.fromJSON(object.priceUsd) : undefined,
categories: globalThis.Array.isArray(object?.categories)
? object.categories.map((e: any) => globalThis.String(e))
: [],
};
},
toJSON(message: Product): unknown {
const obj: any = {};
if (message.id !== "") {