export class EmbedLoaderStyle { backgroundColor?: string; color?: string; constructor(backgroundColor?: string, color?: string) { this.backgroundColor = backgroundColor; this.color = color; } } export function embedLoaderStyleFromJson(json: { [key: string]: any; }): EmbedLoaderStyle { return new EmbedLoaderStyle(json.backgroundColor, json.color); } export function embedLoaderStyleToJson(embedLoaderStyle: EmbedLoaderStyle): { [key: string]: any; } { return { backgroundColor: embedLoaderStyle.backgroundColor, color: embedLoaderStyle.color, }; }