Parameters
- reconstructor: (parsed: { _tag: string; [key: string]: unknown }) => T
Returns {
fromBinary: (binary: string) => T;
fromJSON: (json: string) => T;
fromYAML: (yaml: string) => T;
}
Companion methods object with fromJSON, fromYAML, and fromBinary
Creates companion serialization methods for a type