/opt/canhelp/node_modules/svix/src/models
Edit: /opt/canhelp/node_modules/svix/src/models/connectorPatch.ts (1325B)
// this file is @generated
import { type ConnectorKind, ConnectorKindSerializer } from "./connectorKind";
export interface ConnectorPatch {
allowedEventTypes?: string[] | null;
description?: string;
featureFlags?: string[] | null;
instructions?: string;
kind?: ConnectorKind;
logo?: string | null;
name?: string;
transformation?: string;
}
export const ConnectorPatchSerializer = {
_fromJsonObject(object: any): ConnectorPatch {
return {
allowedEventTypes: object["allowedEventTypes"],
description: object["description"],
featureFlags: object["featureFlags"],
instructions: object["instructions"],
kind:
object["kind"] != null
? ConnectorKindSerializer._fromJsonObject(object["kind"])
: undefined,
logo: object["logo"],
name: object["name"],
transformation: object["transformation"],
};
},
_toJsonObject(self: ConnectorPatch): any {
return {
allowedEventTypes: self.allowedEventTypes,
description: self.description,
featureFlags: self.featureFlags,
instructions: self.instructions,
kind:
self.kind != null ? ConnectorKindSerializer._toJsonObject(self.kind) : undefined,
logo: self.logo,
name: self.name,
transformation: self.transformation,
};
},
};