Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
715 B
Text
20 lines
715 B
Text
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
|
|
import { JsonShapeSerializer } from "./JsonShapeSerializer";
|
|
export class JsonCodec extends SerdeContextConfig {
|
|
settings;
|
|
constructor(settings) {
|
|
super();
|
|
this.settings = settings;
|
|
}
|
|
createSerializer() {
|
|
const serializer = new JsonShapeSerializer(this.settings);
|
|
serializer.setSerdeContext(this.serdeContext);
|
|
return serializer;
|
|
}
|
|
createDeserializer() {
|
|
const deserializer = new JsonShapeDeserializer(this.settings);
|
|
deserializer.setSerdeContext(this.serdeContext);
|
|
return deserializer;
|
|
}
|
|
}
|