Register a class for cross-language Fory serialization.
Register a class as a Fory XLANG wire type.
Optional
@WireType("billing/Invoice")class Invoice { amount = 0; currency = "USD";}@WireType("billing/Invoice", { metadata: { amount: new Metadata({ description: "Total in cents" }) }})class InvoiceWithDocs { amount = 0; currency = "USD";} Copy
@WireType("billing/Invoice")class Invoice { amount = 0; currency = "USD";}@WireType("billing/Invoice", { metadata: { amount: new Metadata({ description: "Total in cents" }) }})class InvoiceWithDocs { amount = 0; currency = "USD";}
Register a class for cross-language Fory serialization.