export class EmbedButtonViewStyle { color?: string; fontFamily?: string; fontWeight?: string; fontSize?: string; fontSmoothing?: string; lineHeight?: string; textTransform?: string; letterSpacing?: string; background?: string; padding?: string; borderRadius?: string; boxShadow?: string; borderStyle?: string; borderColor?: string; borderWidth?: string; constructor( color?: string, fontFamily?: string, fontWeight?: string, fontSize?: string, fontSmoothing?: string, lineHeight?: string, textTransform?: string, letterSpacing?: string, background?: string, padding?: string, borderRadius?: string, boxShadow?: string, borderStyle?: string, borderColor?: string, borderWidth?: string ) { this.color = color; this.fontFamily = fontFamily; this.fontWeight = fontWeight; this.fontSize = fontSize; this.fontSmoothing = fontSmoothing; this.lineHeight = lineHeight; this.textTransform = textTransform; this.letterSpacing = letterSpacing; this.background = background; this.padding = padding; this.borderRadius = borderRadius; this.boxShadow = boxShadow; this.borderStyle = borderStyle; this.borderColor = borderColor; this.borderWidth = borderWidth; } } export function embedButtonViewStyleFromJson(json: { [key: string]: any; }): EmbedButtonViewStyle { return new EmbedButtonViewStyle( json.color, json.fontFamily, json.fontWeight, json.fontSize, json.fontSmoothing, json.lineHeight, json.textTransform, json.letterSpacing, json.background, json.padding, json.borderRadius, json.boxShadow, json.borderStyle, json.borderColor, json.borderWidth ); } export function embedButtonViewStyleToJson( embedButtonViewStyle: EmbedButtonViewStyle ): { [key: string]: any } { return { color: embedButtonViewStyle.color, fontFamily: embedButtonViewStyle.fontFamily, fontWeight: embedButtonViewStyle.fontWeight, fontSize: embedButtonViewStyle.fontSize, fontSmoothing: embedButtonViewStyle.fontSmoothing, lineHeight: embedButtonViewStyle.lineHeight, textTransform: embedButtonViewStyle.textTransform, letterSpacing: embedButtonViewStyle.letterSpacing, background: embedButtonViewStyle.background, padding: embedButtonViewStyle.padding, borderRadius: embedButtonViewStyle.borderRadius, boxShadow: embedButtonViewStyle.boxShadow, borderStyle: embedButtonViewStyle.borderStyle, borderColor: embedButtonViewStyle.borderColor, borderWidth: embedButtonViewStyle.borderWidth, }; }