asMap method
Returns the Branding object as map.
Implementation
Map<String, dynamic> asMap() {
Map<String, dynamic>? fontsMap;
if (this.fonts != null) fontsMap = this.fonts!.asMap();
return {
"logo": this.logo != null ? this.logo!.keyName : null,
"background": this.background,
"onBackground": this.onBackground,
"onBackgroundSecondary": this.onBackgroundSecondary,
"onBackgroundTertiary": this.onBackgroundTertiary,
"primary": this.primary,
"onPrimary": this.onPrimary,
"secondary": this.secondary,
"onSecondary": this.onSecondary,
"cameraOverlay": this.cameraOverlay,
"onCameraOverlay": this.onCameraOverlay,
"outline": this.outline,
"error": this.error,
"success": this.success,
"buttonRadius": this.buttonRadius,
"font": fontsMap
};
}