svix
Version:
Svix webhooks API client and webhook verification library
34 lines (30 loc) • 785 B
text/typescript
// this file is @generated
export interface IntegrationOut {
createdAt: Date;
/** The set of feature flags the integration has access to. */
featureFlags?: string[];
/** The Integration's ID. */
id: string;
name: string;
updatedAt: Date;
}
export const IntegrationOutSerializer = {
_fromJsonObject(object: any): IntegrationOut {
return {
createdAt: new Date(object["createdAt"]),
featureFlags: object["featureFlags"],
id: object["id"],
name: object["name"],
updatedAt: new Date(object["updatedAt"]),
};
},
_toJsonObject(self: IntegrationOut): any {
return {
createdAt: self.createdAt,
featureFlags: self.featureFlags,
id: self.id,
name: self.name,
updatedAt: self.updatedAt,
};
},
};