toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"bar_background_color":
this.BarBackgroundColor.value.toString().replaceFirst("0xFF", "#"),
"bar_background_opacity_percentage":
this.BarBackgroundOpacityPercentage.toString(),
"bar_text_color":
this.BarTextColor.value.toString().replaceFirst("0xFF", "#"),
"button_background_color":
this.ButtonBackgroundColor.value.toString().replaceFirst("0xFF", "#"),
"button_text_color":
this.ButtonTextColor.value.toString().replaceFirst("0xFF", "#"),
"consent_detail": this.ConsentDetail.toMap(),
};
}